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

Commit

Permalink
fix(static): restrict regex for immutable resources
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 26, 2019
1 parent 79c0ba7 commit c71043f
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 @@ -374,7 +374,7 @@ sub hlx_request_type {
return;
}

if (req.url.ext ~ "^(.*)(.hlx_([0-9a-f]){20,40}$)") {
if (req.url.ext ~ "^(hlx_([0-9a-f]){20,40}$)") {
set req.http.X-Trace = req.http.X-Trace + "(immutable)";
set req.http.X-Request-Type = "Static";
return;
Expand Down

0 comments on commit c71043f

Please sign in to comment.