From e5dfd2e8b5fcc8ec4d0537b5efe76d107829cc7e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 9 Aug 2020 11:57:07 +0200 Subject: [PATCH] Set a grace period for requests that have informational headers --- templates/varnish.vcl.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/varnish.vcl.j2 b/templates/varnish.vcl.j2 index 85bb5f3..b793609 100644 --- a/templates/varnish.vcl.j2 +++ b/templates/varnish.vcl.j2 @@ -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) {