diff conf/mime.types @ 5311:ae3fd1ca62e0

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.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 31 Jul 2013 23:40:46 +0400
parents 0688cf5d73ec
children aeabb6ae574d
line wrap: on
line diff
--- 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;