v0.39.0
This commit is contained in:
1 parent
5e43752041
commit
15425fb803
34 files changed
+1423
-89
No files matched your search
@@ -0,0 +1,21 @@
|
||||
// Origin responsibility: return Vary: Accept-Language (plus any other real
|
||||
// dimensions such as Accept-Encoding), public freshness and no Set-Cookie.
|
||||
// Do not replace the origin Vary list with a single dimension.
|
||||
sub vcl_recv {
|
||||
if (req.method != "GET" && req.method != "HEAD") {
|
||||
return(pass);
|
||||
}
|
||||
if (req.http.Authorization || req.http.Cookie) {
|
||||
return(pass);
|
||||
}
|
||||
if (req.url ~ "^/translations(/|[?]|$)") {
|
||||
return(hash);
|
||||
}
|
||||
return(pass);
|
||||
}
|
||||
|
||||
sub vcl_backend_response {
|
||||
if (bereq.url ~ "^/translations(/|[?]|$)" && beresp.status == 200 && beresp.http.Cache-Control ~ "(^|,) *public(,|$)") {
|
||||
set beresp.ttl = 60s;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user