diff --git a/nginx.conf b/nginx.conf index 670895a..f77ddec 100644 --- a/nginx.conf +++ b/nginx.conf @@ -107,8 +107,6 @@ location /INSTANCE { alias HTMLPATH/; try_files $uri $uri/ =404; absolute_redirect off; - gzip off; - gzip_static off; # location block priority: # = / exact location matches > regex matches > prefix matchs @@ -116,20 +114,14 @@ location /INSTANCE { # exact matches location = /INSTANCE/config.js { add_header Cache-Control "no-cache"; - gzip on; - gzip_static on; } location = /INSTANCE/index.html { add_header Cache-Control "no-cache"; - gzip on; - gzip_static on; } # regex matches location ~ ^/INSTANCE/style.*\.css$ { add_header Cache-Control "public, max-age=7776000"; - gzip on; - gzip_static on; } location ~ ^/INSTANCE/db-.*\.js$ { @@ -141,13 +133,9 @@ location /INSTANCE { location ~ ^/INSTANCE/libs/.*$ { add_header Cache-Control "public, max-age=7776000"; - gzip on; - gzip_static on; } location ~ ^/INSTANCE/[^/]*\.js$ { add_header Cache-Control "public, max-age=7776000"; - gzip on; - gzip_static on; } # prefix matches