瀏覽代碼

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.
Åsmund Grammeltvedt 10 年之前
父節點
當前提交
36039f8e13
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nginx.tmpl

+ 1 - 1
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 '