diff --git a/nginx/mime.types b/nginx/mime.types index dbf35f11..30892859 100644 --- a/nginx/mime.types +++ b/nginx/mime.types @@ -2,10 +2,10 @@ types { text/html html htm shtml; text/css css; + text/javascript js mjs; text/xml xml; image/gif gif; image/jpeg jpeg jpg; - application/javascript js mjs; application/atom+xml atom; application/rss+xml rss; diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e6854bf1..7e0f0850 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -14,7 +14,7 @@ http { default_type application/octet-stream; charset utf-8; - charset_types text/css text/plain text/xml application/atom+xml application/javascript; + charset_types text/css text/javascript text/plain text/xml application/atom+xml; sendfile on; sendfile_max_chunk 512k;