@cryptotaxi247 / infra-1 / commits / 36d64bc5

terraform: add streaming-miss to cache.nixos.org

This was a recommendation by thoughtpolice

zimbatm committed Jul 19, 2022 at 11:28 UTC 36d64bc5ab5e3953ccfbb6f85dc1228bdafed127
1 file changed +12
terraform/cache.tf
+12
@@ -172,6 +172,18 @@ resource "fastly_service_v1" "cache" {
172 name = "remove x-amz-id-2"
173 }
174
175 + # Enable Streaming Miss.
176 + # https://docs.fastly.com/en/guides/streaming-miss
177 + # https://github.com/NixOS/nixos-org-configurations/issues/212#issuecomment-1187568233
178 + header {
179 + priority = 20
180 + destination = "do_stream"
181 + type = "cache"
182 + action = "set"
183 + name = "Enabling Streaming Miss"
184 + source = "true"
185 + }
186 +
187 # Allow CORS GET requests.
188 header {
189 destination = "http.access-control-allow-origin"