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.
Valentin Bartenev
8 years ago
4 | 4 | text/xml xml; |
5 | 5 | image/gif gif; |
6 | 6 | image/jpeg jpeg jpg; |
7 | application/x-javascript js; | |
7 | application/javascript js; | |
8 | 8 | application/atom+xml atom; |
9 | 9 | application/rss+xml rss; |
10 | 10 |