Skip to content

Commit

Permalink
Update fastly.vcl
Browse files Browse the repository at this point in the history
magento suggests implementing this in nginx but it makes more sense to have it here and it won't interfere with the nginx rules, if both are used.
  • Loading branch information
r0fls authored Sep 27, 2016
1 parent 1f534d4 commit cb8159d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/fastly.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
sub vcl_recv {
#FASTLY recv

if (req.url ~ "^/static/version(\d*/)?(.*)$") {
set req.url = "/static/" + re.group.2 + "?" + re.group.1;
}

# auth for purging
if (req.request == "FASTLYPURGE") {
# extract token signature and expiration
Expand Down

0 comments on commit cb8159d

Please sign in to comment.