From 245b583cae5991e572471426717c519b93b72363 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Thu, 25 Apr 2019 15:44:01 +0000 Subject: [PATCH] fix(static): use re instead of req --- layouts/fastly/helix.vcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/fastly/helix.vcl b/layouts/fastly/helix.vcl index 3a48e172..3c2c2668 100644 --- a/layouts/fastly/helix.vcl +++ b/layouts/fastly/helix.vcl @@ -517,7 +517,7 @@ sub hlx_fetch_static { set var.ext = ".hlx_" + digest.hash_sha1(beresp.http.ETag); - if (req.group.2 == var.ext) { + if (re.group.2 == var.ext) { # tell the browser to keep them forever set beresp.http.Cache-Control = "max-age=31622400,immutable"; # keep it for a year in the browser; set beresp.http.Surrogate-Control = "max-age=3600"; # but only for an hour in the shared cache