Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
fix(static): use re instead of req
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 25, 2019
1 parent 3f23556 commit 245b583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/fastly/helix.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 245b583

Please sign in to comment.