caching stuff for lighttpd and config.js
This commit is contained in:
@@ -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$" {
|
||||
|
||||
Reference in New Issue
Block a user