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 beresp instead of resp for ETag value
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 25, 2019
1 parent 46bc081 commit 112796d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/fastly/helix.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ sub hlx_fetch_static {
# Get the ETag response header and use it to construct a stable URL
declare local var.ext STRING;

set var.ext = ".hlx_" + digest.hash_sha1(resp.http.ETag);
set var.ext = ".hlx_" + digest.hash_sha1(beresp.http.ETag);
synthetic regsub(req.http.X-Orig-URL, ".esi$", var.ext);
return(deliver);

} elsif (beresp.http.X-Static == "Raw/Static") {
set req.http.X-Trace = req.http.X-Trace + "(raw)";
if (beresp.status == 307) {
Expand Down

0 comments on commit 112796d

Please sign in to comment.