Skip to content

Commit

Permalink
feat(infra): apply condition
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 30, 2024
1 parent 6d17583 commit 926b463
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infra/cdn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ resource "fastly_service_vcl" "python_org" {
ttl = 0
}

cache_setting {
action = "pass"
cache_condition = "Don't cache 404s for /static"
name = "No caching for /static 404s"
stale_ttl = 0
ttl = 0
}

condition {
name = "Force Pass No-Cache No-Store"
priority = 10
Expand Down

0 comments on commit 926b463

Please sign in to comment.