This commit is contained in:
Matthias Wirth
2020-11-13 20:12:07 +01:00
parent d702756ef0
commit 723832be18
2 changed files with 7 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ location /INSTANCE/globe_history/ {
location /INSTANCE/chunks/ {
alias /run/SERVICE/;
location ~ chunk_.*\.gz$ {
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=86400";
add_header Content-Type "application/json";
add_header Content-Encoding "gzip";
}
@@ -60,17 +60,17 @@ location /INSTANCE {
location ~ db-.*\.js$ {
gzip off;
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=7776000";
add_header Content-Encoding "gzip";
}
location /INSTANCE/images {
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=7776000";
}
location /INSTANCE/flags-tiny {
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=7776000";
}
location ~ .*\.gif$ {
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=7776000";
}
location ~ index.html$ {
add_header Cache-Control "public, max-age=300";
@@ -79,9 +79,9 @@ location /INSTANCE {
add_header Cache-Control "public, max-age=10";
}
location ~ .*\.js$ {
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=7776000";
}
location ~ .*\.css$ {
add_header Cache-Control "public, max-age=1209600";
add_header Cache-Control "public, max-age=7776000";
}
}