https://bugzilla.wikimedia.org/show_bug.cgi?id=31051

--- Comment #7 from Krinkle <[email protected]> 2011-09-21 22:34:14 UTC ---
I just learned on IRC that a /resources-1.18/ alias does exist on the cluster.
However there appears to be a problem with it. For some reason the following
header is sent for .js files loaded from there:

Content-Type:application/x-javascript

That is causing browsers like Google Chrome to instead ask the user to download
it (it should be text/javascript, since it's not an AJAX response, just a
normal javascript file)

Example: 
http://test2.wikipedia.org/w/resources-1.18/mediawiki/mediawiki.user.js

--

So far we learned that it's probably impossible and/or unwanted to magically
let /resources go to 1.17 or 1.18 depending on which hostname it is called on.
Instead we want to make that directory not hardcoded but variable via a new
wgResourcesPath ($wgScriptPath/resoruces) and wgResourcesDirectory(
$IP/resources ).

The former would be set per mwversion group (just like we do with wgStylePath
for /skins-1.18/ and wgExtensionAssetsPath (/extensions-1.18) ). The latter can
probably stay the default value since the folder on-disk isn't named
differently it's just the web access to it using a symlink.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to