Permalink
Browse files

Field values are case insensitive

Should address "HTTP cache must not use a cached response with
Cache-Control: No-CaChE, even with max-age and Expires" from
https://cache-tests.fyi.
  • Loading branch information...
fgsch committed Dec 27, 2018
1 parent c143dbe commit 42f3ee8c8d1e7b646f60051f5b0282a6c59820b8
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/varnishd/builtin.vcl
@@ -156,9 +156,9 @@ sub vcl_backend_response {
return (deliver);
} else if (beresp.ttl <= 0s ||
beresp.http.Set-Cookie ||
beresp.http.Surrogate-control ~ "no-store" ||
beresp.http.Surrogate-control ~ "(?i)no-store" ||
(!beresp.http.Surrogate-Control &&
beresp.http.Cache-Control ~ "no-cache|no-store|private") ||
beresp.http.Cache-Control ~ "(?i:no-cache|no-store|private)") ||
beresp.http.Vary == "*") {
# Mark as "Hit-For-Miss" for the next 2 minutes
set beresp.ttl = 120s;

0 comments on commit 42f3ee8

Please sign in to comment.