diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-07-31 23:40:46 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-07-31 23:40:46 +0400 |
commit | 3086ab2996403fbb4cf6525986e00e4a521ada1e (patch) | |
tree | b89fbb5c1c41b3627bf23acf499a16d2af48d803 /conf | |
parent | 986d3a870dff5b07d5a3606efeea939b8ebfed2f (diff) |
MIME: use "application/javascript" for .js files.
Though there are several MIME types commonly used for JavaScript nowadays,
the most common being "text/javascript", "application/javascript", and
currently used by nginx "application/x-javascript", RFC 4329 prefers
"application/javascript".
The "charset_types" directive's default value was adjusted accordingly.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/mime.types | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/mime.types b/conf/mime.types index 8a218b22..2a4bd738 100644 --- a/conf/mime.types +++ b/conf/mime.types @@ -5,7 +5,7 @@ types { text/xml xml; image/gif gif; image/jpeg jpeg jpg; - application/x-javascript js; + application/javascript js; application/atom+xml atom; application/rss+xml rss; |