Bug 63109 - Change .xsl to text/xsl in mime.types
Summary: Change .xsl to text/xsl in mime.types
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_mime (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2019-01-24 08:19 UTC by Hendy Irawan
Modified: 2019-01-24 08:20 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Hendy Irawan 2019-01-24 08:19:49 UTC
According to at least WebKit browsers (https://stackoverflow.com/a/8245664/122441): There are only 2 valid types for stylesheets:

* text/css
* text/xsl

Currently mime.types maps .xsl to application/xml which in browsers gives a warning: "Resource interpreted as document but transferred with MIME type application/xml." (happens on Safari, Chrome; should happen with other browsers like Opera, and upcoming Chromium-based Edge)

The proposal is to change .xsl to text/xsl.

Original proposal: https://github.com/jshttp/mime-db/issues/150

Related to bug 55963