From f3d4a382959e1df12fe15fa020419378c27b0dc4 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 9 Nov 2025 15:18:54 +0000 Subject: [PATCH] nginx conf: no need to disable gzip can still be enabled / disabled globally in nginx --- nginx.conf | 12 ------------ 1 file changed, 12 deletions(-) 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