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"