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

Commit

Permalink
fix(proxy): Don't attempt to recover from 404 errors in proxy strains
Browse files Browse the repository at this point in the history
fixes #75
  • Loading branch information
trieloff committed May 8, 2019
1 parent c4f9791 commit 8b84690
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 @@ -623,7 +623,7 @@ sub hlx_deliver_static {
set resp.response = "Redirect to wrong hostname";
set req.http.X-Trace = req.http.X-Trace + "(redirect-error)";
}
} elsif ((resp.status == 404 || resp.status == 204) && !req.http.X-Disable-Static && req.restarts < 1) {
} elsif ((resp.status == 404 || resp.status == 204) && !req.http.X-Disable-Static && req.restarts < 1 && req.http.X-Request-Type != "Proxy") {
# That was a miss. Let's try to restart, but only restart once
set resp.http.X-Status = resp.status + "-Restart " + req.restarts;
set resp.status = 404;
Expand Down

0 comments on commit 8b84690

Please sign in to comment.