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

Commit

Permalink
fix(static): handle immutable requests without restart
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 26, 2019
1 parent d22c465 commit 79c0ba7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/fastly/helix.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,12 @@ sub hlx_request_type {
return;
}

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;
}

# Binary type images
if (req.url.ext ~ "(?i)^(?:gif|png|jpe?g|webp)$") {
set req.http.X-Trace = req.http.X-Trace + "(image)";
Expand Down

0 comments on commit 79c0ba7

Please sign in to comment.