Skip to content

Commit 7dc016d

Browse files
Updates
1 parent 533c00c commit 7dc016d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ngwaf-terraform-edge-deploy/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ resource "fastly_service_vcl" "frontend-vcl-service" {
5151
priority = 100
5252
}
5353

54-
#### Disable caching, but keep request collapsing https://www.fastly.com/documentation/reference/vcl/variables/backend-response/beresp-cacheable/#effects-on-request-collapsing
54+
#### Disable caching, but keep request collapsing https://www.fastly.com/documentation/reference/vcl/variables/client-request/req-hash-always-miss/
5555
# snippet {
5656
# name = "Disable caching"
57-
# content = "set beresp.cacheable = false;"
58-
# type = "fetch"
59-
# priority = 9000
57+
# content = "set req.hash_always_miss = true;"
58+
# type = "recv"
59+
# priority = 0
6060
# }
6161

6262
#### Useful for debugging with response headers
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
#### https://docs.fastly.com/en/guides/temporarily-disabling-caching
2-
#### Do not use this for production traffic
3-
return(pass);
1+
# https://www.fastly.com/documentation/reference/vcl/variables/client-request/req-hash-always-miss/
2+
set req.hash_always_miss = true;

0 commit comments

Comments
 (0)