make sure zst files in /data aren't cached

This commit is contained in:
Matthias Wirth
2022-07-08 08:21:47 +02:00
parent 5639a4bea8
commit f71cd9abe6
2 changed files with 17 additions and 7 deletions

View File

@@ -29,6 +29,10 @@ location /INSTANCE/data/ {
add_header Cache-Control "public, no-cache";
add_header Content-Encoding "gzip";
}
location ~ .*\.zst$ {
gzip off;
add_header Cache-Control "public, no-cache";
}
}
location /INSTANCE/osm_tiles_offline/ {
@@ -101,12 +105,12 @@ location /INSTANCE {
# exact matches
location = /INSTANCE/config.js {
add_header Cache-Control "public, max-age=0";
add_header Cache-Control "public, no-cache";
gzip on;
gzip_static on;
}
location = /INSTANCE/index.html {
add_header Cache-Control "public, max-age=0";
add_header Cache-Control "public, no-cache";
gzip on;
gzip_static on;
}