reduce cache lifetime for traces

This commit is contained in:
Matthias Wirth
2021-03-21 14:13:34 +01:00
parent 965ca822ac
commit e8ddab92c9
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ $HTTP["url"] =~ "^/INSTANCE/data/globe.*" {
$HTTP["url"] =~ "^/INSTANCE/data/traces/" {
compress.filetype = ()
setenv.add-response-header += (
"Cache-Control" => "public, max-age=10",
"Cache-Control" => "public, max-age=2",
"Content-Encoding" => "gzip",
)
}

View File

@@ -7,12 +7,12 @@ location /INSTANCE/data/ {
location /INSTANCE/data/traces/ {
location ~ trace_recent {
gzip off;
add_header Cache-Control "public, max-age=5";
add_header Cache-Control "private, max-age=2";
add_header Content-Encoding "gzip";
}
location ~ trace_full {
gzip off;
add_header Cache-Control "public, max-age=200";
add_header Cache-Control "private, max-age=2";
add_header Content-Encoding "gzip";
}
}