caching stuff for lighttpd and config.js

This commit is contained in:
Matthias Wirth
2020-06-01 20:34:12 +02:00
parent 3e4f25eaf0
commit 170d27654a

View File

@@ -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$" {