http server cache config granularity

This commit is contained in:
Matthias Wirth
2022-01-24 11:29:37 +01:00
parent 0ca7f8a96b
commit e0821de7d5
2 changed files with 15 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ alias.url += (
)
$HTTP["url"] =~ "^/INSTANCE/data/.*\.binCraft$" {
compress.filetype = ()
compress.filetype = ()
setenv.add-response-header += (
"Cache-Control" => "no-cache",
"Content-Encoding" => "gzip",
@@ -100,17 +100,12 @@ $HTTP["url"] =~ "^/INSTANCE/db-.*\.js$" {
"Content-Encoding" => "gzip",
)
}
$HTTP["url"] =~ "^/INSTANCE/ol/.*$" {
$HTTP["url"] =~ "^/INSTANCE/libs/.*$" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=1209600",
)
}
$HTTP["url"] =~ "^/INSTANCE/jquery/.*$" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=1209600",
)
}
$HTTP["url"] =~ "^/INSTANCE/.*\.css$" {
$HTTP["url"] =~ "^/INSTANCE/style.css$" {
setenv.add-response-header += (
"Cache-Control" => "public, max-age=1209600",
)