Mercurial > hg > nginx
comparison src/http/modules/ngx_http_charset_filter_module.c @ 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 | d620f497c50f |
children | fcb0420f90de |
comparison
equal
deleted
inserted
replaced
5310:fa07bec738ac | 5311:ae3fd1ca62e0 |
---|---|
126 ngx_str_t ngx_http_charset_default_types[] = { | 126 ngx_str_t ngx_http_charset_default_types[] = { |
127 ngx_string("text/html"), | 127 ngx_string("text/html"), |
128 ngx_string("text/xml"), | 128 ngx_string("text/xml"), |
129 ngx_string("text/plain"), | 129 ngx_string("text/plain"), |
130 ngx_string("text/vnd.wap.wml"), | 130 ngx_string("text/vnd.wap.wml"), |
131 ngx_string("application/x-javascript"), | 131 ngx_string("application/javascript"), |
132 ngx_string("application/rss+xml"), | 132 ngx_string("application/rss+xml"), |
133 ngx_null_string | 133 ngx_null_string |
134 }; | 134 }; |
135 | 135 |
136 | 136 |