nginx conf: no need to disable gzip
can still be enabled / disabled globally in nginx
This commit is contained in:
12
nginx.conf
12
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
|
||||
|
||||
Reference in New Issue
Block a user