nginx conf: no need to disable gzip

can still be enabled / disabled globally in nginx
This commit is contained in:
Matthias Wirth
2025-11-09 15:18:54 +00:00
parent abbc708f71
commit f3d4a38295

View File

@@ -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