We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c44d80 commit 354631bCopy full SHA for 354631b
infra/cdn/main.tf
@@ -68,6 +68,14 @@ resource "fastly_service_vcl" "python_org" {
68
ttl = 0
69
}
70
71
+ cache_setting {
72
+ action = "pass"
73
+ cache_condition = "Don't cache 404s for /static"
74
+ name = "No caching for /static 404s"
75
+ stale_ttl = 0
76
+ ttl = 0
77
+ }
78
+
79
condition {
80
name = "Force Pass No-Cache No-Store"
81
priority = 10
@@ -129,6 +137,13 @@ resource "fastly_service_vcl" "python_org" {
129
137
type = "REQUEST"
130
138
131
139
140
+ condition {
141
+ name = "Don't cache 404s for /static"
142
+ priority = 10
143
+ statement = "req.url ~ \"^/static/\" && beresp.status == 404"
144
+ type = "CACHE"
145
146
132
147
gzip {
133
148
name = "Default rules"
134
149
content_types = [
0 commit comments