diff --git a/88-tar1090.conf b/88-tar1090.conf index 126a78d..bf545af 100644 --- a/88-tar1090.conf +++ b/88-tar1090.conf @@ -69,14 +69,25 @@ $HTTP["url"] =~ "^/INSTANCE/spinny.gif$" { "Cache-Control" => "public, max-age=1209600", ) } -$HTTP["url"] =~ "^/INSTANCE/.*\.js$" { +$HTTP["url"] =~ "^/INSTANCE/config.js$" { + setenv.add-response-header += ( + "Cache-Control" => "public, must-revalidate", + ) +} + +$HTTP["url"] =~ "^/INSTANCE/.*_.*\.js$" { setenv.add-response-header += ( "Cache-Control" => "public, max-age=1209600", ) } -$HTTP["url"] =~ "^/INSTANCE/config.js$" { +$HTTP["url"] =~ "^/INSTANCE/ol/.*$" { setenv.add-response-header += ( - "Cache-Control" => "must-revalidate", + "Cache-Control" => "public, max-age=1209600", + ) +} +$HTTP["url"] =~ "^/INSTANCE/jquery/.*$" { + setenv.add-response-header += ( + "Cache-Control" => "public, max-age=1209600", ) } $HTTP["url"] =~ "^/INSTANCE/.*\.css$" {