http server cache config granularity
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user