Skip to content

Commit

Permalink
text/javascript intended usage COMMON
Browse files Browse the repository at this point in the history
  • Loading branch information
laukstein committed Nov 15, 2017
1 parent db3d5ff commit e4982b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ~config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ TraceEnable off
AddType application/font-sfnt otf ttf
AddType application/font-woff woff
AddType application/font-woff2 woff2
AddType application/javascript js
AddType application/json json
AddType application/ld+json jsonld
# Manifest https://w3c.github.io/manifest/#media-type-registration https://bugzilla.mozilla.org/show_bug.cgi?id=997779
Expand All @@ -150,6 +149,9 @@ TraceEnable off
AddType audio/ogg oga ogg
AddType image/webp webp
AddType image/x-icon ico
# Servers should use text/javascript for JavaScript resources
# https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages
AddType text/javascript js
AddType text/vtt vtt
AddType text/vcard vcard vcf
AddType video/mp4 mp4
Expand All @@ -169,7 +171,6 @@ TraceEnable off
AddOutputFilterByType DEFLATE "application/font-sfnt \
"application/font-woff" \
"application/font-woff2" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
Expand All @@ -183,6 +184,7 @@ TraceEnable off
"image/x-icon" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vtt"
Expand All @@ -196,7 +198,6 @@ TraceEnable off
ExpiresByType application/font-sfnt "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
# Cache Ajax http://developer.yahoo.com/performance/rules.html#cacheajax
ExpiresByType application/json "access plus 1 day"
Expand All @@ -218,6 +219,7 @@ TraceEnable off
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 1 day"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/plain "access plus 1 month"
ExpiresByType text/vcard "access plus 1 month"
ExpiresByType text/vtt "access plus 1 month"
Expand Down

0 comments on commit e4982b8

Please sign in to comment.