Set a grace period for requests that have informational headers

This commit is contained in:
Alex 2020-08-09 11:57:07 +02:00
parent 29c25ff024
commit e5dfd2e8b5
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ sub vcl_backend_response {
return (deliver);
}
if (beresp.http.ETag || beresp.http.Last-Modified || bereq.http.If-Modified-Since) {
set beresp.grace = 1h;
set beresp.keep = 12h;
}
if (beresp.status == 301) {