Klaus Demo nginx / 3086ab2
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
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
44 text/xml xml;
55 image/gif gif;
66 image/jpeg jpeg jpg;
7 application/x-javascript js;
7 application/javascript js;
88 application/atom+xml atom;
99 application/rss+xml rss;
1010
127127 ngx_string("text/xml"),
128128 ngx_string("text/plain"),
129129 ngx_string("text/vnd.wap.wml"),
130 ngx_string("application/x-javascript"),
130 ngx_string("application/javascript"),
131131 ngx_string("application/rss+xml"),
132132 ngx_null_string
133133 };