Set a grace period for requests that have informational headers
This commit is contained in:
parent
29c25ff024
commit
e5dfd2e8b5
|
@ -51,6 +51,7 @@ sub vcl_backend_response {
|
||||||
return (deliver);
|
return (deliver);
|
||||||
}
|
}
|
||||||
if (beresp.http.ETag || beresp.http.Last-Modified || bereq.http.If-Modified-Since) {
|
if (beresp.http.ETag || beresp.http.Last-Modified || bereq.http.If-Modified-Since) {
|
||||||
|
set beresp.grace = 1h;
|
||||||
set beresp.keep = 12h;
|
set beresp.keep = 12h;
|
||||||
}
|
}
|
||||||
if (beresp.status == 301) {
|
if (beresp.status == 301) {
|
||||||
|
|
Reference in New Issue