Skip to content

Commit

Permalink
Merge pull request #1021 from alphagov/fix-failover-cdn
Browse files Browse the repository at this point in the history
Make CloudFront include Host header in cache key
  • Loading branch information
robinjam authored Nov 23, 2023
2 parents 5e9e818 + 6bc7551 commit db07d1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terraform/deployments/cloudfront/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ resource "aws_cloudfront_cache_policy" "no-cookies" {
cookie_behavior = "none"
}
headers_config {
header_behavior = "none"
header_behavior = "whitelist"
headers {
items = ["Host"]
}
}
query_strings_config {
query_string_behavior = "all"
Expand Down

0 comments on commit db07d1c

Please sign in to comment.