From ab130155a015cf74df8814884866d96b2a6f8c45 Mon Sep 17 00:00:00 2001 From: James Fenn Date: Mon, 12 Jan 2026 02:57:58 +0000 Subject: [PATCH] add cache type discoverability header --- modules/playful-web/main.tf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/playful-web/main.tf b/modules/playful-web/main.tf index 1c4c292..09bb5fb 100644 --- a/modules/playful-web/main.tf +++ b/modules/playful-web/main.tf @@ -77,11 +77,24 @@ resource "fastly_service_vcl" "cdn" { ignore_if_set = false name = "Pass header to enable discoverability in prod" priority = 100 - source = "true" + source = "\"true\"" type = "request" } } + dynamic "header" { + for_each = var.noindex ? [] : [1] + content { + action = "set" + destination = "http.Playful-Enable-Discoverability" + ignore_if_set = false + name = "Pass header to enable discoverability in prod" + priority = 100 + source = "\"true\"" + type = "cache" + } + } + header { action = "set" destination = "http.Strict-Transport-Security"