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

@@ -54,9 +54,9 @@ $HTTP["url"] =~ "^/INSTANCE/data/icao_.*\.json$" {
"Cache-Control" => "public, max-age=10",
)
}
$HTTP["url"] =~ "^/INSTANCE/db2/.*\.json$" {
$HTTP["url"] =~ "^/INSTANCE/db.*\.json$" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=100000",
"Cache-Control" => "public, max-age=1209600",
)
}
$HTTP["url"] =~ "^/INSTANCE/.*\.png$" {