Skip to content

Commit 690f4ad

Browse files
committed
media type application/javascript => text/javascript
1 parent 14b242b commit 690f4ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/media_types/media_types.conf

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
# JavaScript
2323

24-
# Normalize to standard type.
25-
# https://tools.ietf.org/html/rfc4329#section-7.2
24+
# Servers should use text/javascript for JavaScript resources.
25+
# https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages
2626

27-
AddType application/javascript js mjs
27+
AddType text/javascript js mjs
2828

2929

3030
# Manifest files

test/tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ exports = module.exports = {
257257
'test.js': {
258258
responseHeaders: {
259259
'cache-control': 'max-age=31536000, no-transform',
260-
'content-type': 'application/javascript; charset=utf-8'
260+
'content-type': 'text/javascript; charset=utf-8'
261261
}
262262
},
263263

0 commit comments

Comments
 (0)