mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 15:39:01 +08:00
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.
This commit is contained in:
parent
986d3a870d
commit
3086ab2996
@ -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;
|
||||
|
||||
|
@ -128,7 +128,7 @@ ngx_str_t ngx_http_charset_default_types[] = {
|
||||
ngx_string("text/xml"),
|
||||
ngx_string("text/plain"),
|
||||
ngx_string("text/vnd.wap.wml"),
|
||||
ngx_string("application/x-javascript"),
|
||||
ngx_string("application/javascript"),
|
||||
ngx_string("application/rss+xml"),
|
||||
ngx_null_string
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user