cache.nixos.org: Fix 404 content-type
Eelco Dolstra committed
Jun 23, 2022 at 21:18 UTC
41fecdc307a1c5f1af22a395a46829fe5abc261f
1 file changed
+4
-4
terraform/cache.tf
+4
-4
@@ -123,7 +123,7 @@ resource "fastly_service_v1" "cache" {
123
}
124
125
condition {
126
- name = "Generated by synthetic response for 404 page"
126
+ name = "is-404"
127
priority = 0
128
statement = "beresp.status == 404"
129
type = "CACHE"
@@ -181,10 +181,10 @@ resource "fastly_service_v1" "cache" {
181
}
182
183
response_object {
184
- cache_condition = "Generated by synthetic response for 404 page"
184
+ name = "404-page"
185
+ cache_condition = "is-404"
186
content = "404"
186
- content_type = "text/html"
187
- name = "Generated by synthetic response for 404 page"
187
+ content_type = "text/plain"
188
response = "Not Found"
189
status = 404
190
}