Skip to content

Commit

Permalink
Merge pull request #85 from fastly/smaeda-ks/fix-recv-snippet
Browse files Browse the repository at this point in the history
disable SWR at shielding
  • Loading branch information
vvuksan committed Nov 30, 2020
2 parents 23b73cc + 107c12e commit dbafb9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vcl_snippets/recv.vcl
@@ -1,3 +1,8 @@
if (fastly.ff.visits_this_service > 0) {
# Needed for proper handling of stale while revalidated when shielding is involved
set req.max_stale_while_revalidate = 0s;
}

## always cache these images & static assets
if (req.request == "GET" && req.url.ext ~ "(?i)(css|js|gif|jpg|jpeg|bmp|png|ico|img|tga|webp|wmf)") {
remove req.http.cookie;
Expand Down

0 comments on commit dbafb9c

Please sign in to comment.