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

           Summary: MIME type for some css files set incorrectly from
                    payments server
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: DonationInterface
        AssignedTo: aricha...@wikimedia.org
        ReportedBy: rkald...@wikimedia.org
                CC: tf...@wikimedia.org


When loading the payment forms on payments.wikimedia.org I get several MIME
type errors in Firefox. For example:

Error: The stylesheet
https://payments.wikimedia.org/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".

Since the file name is in the query string instead of in the main part of the
URL, Apache doesn't know to serve it as text/css instead of text/html. To work
around this problem on the cluster we specify the type in the link tag:

<link rel="stylesheet"
href="/w/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=2678400&amp;action=raw&amp;maxage=2678400"
type="text/css" media="all" />

On payments, however, the type is not being specified:

<link rel="stylesheet"
href="/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000"
/>

(This issue will be moot one the Recource Loader is deployed.)

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to