Last modified: 2011-04-30 01:16:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19420, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17420 - filecache returns wiki controlled css as type text/html
filecache returns wiki controlled css as type text/html
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.14.x
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-09 01:14 UTC by Jools Wills
Modified: 2011-04-30 01:16 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jools Wills 2009-02-09 01:14:16 UTC
I upgraded to 1.14rc and the filecache is now returning css with the wrong mime/type

Firefox says

Error: The stylesheet http://exotica.travelmate/mediawiki/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000 was not loaded because its MIME type, "text/html", is not "text/css".
Source File: http://exotica.travelmate/wiki/Main_Page
Line: 0

this happens only with

$wgUseFileCache = true;

and when not logged in.
Comment 1 Jools Wills 2009-02-09 09:22:34 UTC
Just some more info

headers without filecache

  HTTP/1.1 200 OK
  Date: Mon, 09 Feb 2009 09:09:54 GMT
  Server: Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch
  X-Powered-By: PHP/5.2.6-2ubuntu4
  Cache-Control: public, s-maxage=18000, max-age=18000
  Vary: Accept-Encoding
  X-Vary-Options: Accept-Encoding;list-contains=gzip
  Content-Length: 6362
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Content-Type: text/css; charset=UTF-8

headers with filecache

  HTTP/1.1 200 OK
  Date: Mon, 09 Feb 2009 09:10:28 GMT
  Server: Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch
  X-Powered-By: PHP/5.2.6-2ubuntu4
  Cache-Control: public, s-maxage=18000, max-age=18000
  Content-language: en
  Vary: Accept-Encoding
  X-Vary-Options: Accept-Encoding;list-contains=gzip
  Content-Length: 6362
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Content-Type: text/html; charset=UTF-8

Comment 2 Jools Wills 2009-02-10 11:23:17 UTC
Some more information: I was previously running 1.3.2. my core files are identical to mediawiki (checked with diff). 
Comment 3 Jools Wills 2009-02-10 11:23:41 UTC
i meant 1.13.2 of course
Comment 4 Tim Starling 2009-02-11 15:18:19 UTC
Fixed in r47139 and backported. It will be in the next 1.14 release.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links