From 36039f8e13c8ca7c9a4f54370840b42be7bc881c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20Grammeltvedt?= Date: Mon, 5 Jan 2015 13:31:26 +0100 Subject: [PATCH] Gzip application/javascript As per RFC4329, nginx uses application/javascript as the default MIME type for .js files. Nginx-proxy will now gzip these files if the client requests it. --- nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index fd5d2e9..d373ce3 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -12,7 +12,7 @@ map $http_upgrade $proxy_connection { '' ''; } -gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; +gzip_types text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; log_format vhost '$host $remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent '