resolve database caching issues

This commit is contained in:
Matthias Wirth
2020-02-23 17:07:36 +01:00
parent beccbb021c
commit dbb4280ed9
6 changed files with 16 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ location /INSTANCE/data/ {
}
location ~ globe_.*\.json$ {
gzip off;
add_header Cache-Control "public, max-age=2";
add_header Cache-Control "public, max-age=0";
add_header Content-Encoding "gzip";
}
}
@@ -53,8 +53,8 @@ location /INSTANCE {
gzip_static on;
location ~ db2/.*\.json$ {
add_header Cache-Control "public, max-age=100000";
location ~ db.*\.json$ {
add_header Cache-Control "public, max-age=1209600";
}
location ~ .*\.png$ {
add_header Cache-Control "public, max-age=1209600";