reduce cache lifetime for traces
This commit is contained in:
@@ -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",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user