We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b242b commit 690f4adCopy full SHA for 690f4ad
src/media_types/media_types.conf
@@ -21,10 +21,10 @@
21
22
# JavaScript
23
24
- # Normalize to standard type.
25
- # https://tools.ietf.org/html/rfc4329#section-7.2
+ # Servers should use text/javascript for JavaScript resources.
+ # https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages
26
27
- AddType application/javascript js mjs
+ AddType text/javascript js mjs
28
29
30
# Manifest files
test/tests.js
@@ -257,7 +257,7 @@ exports = module.exports = {
257
'test.js': {
258
responseHeaders: {
259
'cache-control': 'max-age=31536000, no-transform',
260
- 'content-type': 'application/javascript; charset=utf-8'
+ 'content-type': 'text/javascript; charset=utf-8'
261
}
262
},
263
0 commit comments