Skip to content

Commit

Permalink
readded headers
Browse files Browse the repository at this point in the history
  • Loading branch information
martynipratt committed Nov 29, 2023
1 parent 31e55b6 commit 70b07ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions terraform/deployments/cloudfront/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ resource "aws_cloudfront_distribution" "www_distribution" {
}

default_cache_behavior {


allowed_methods = ["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
cached_methods = ["GET", "HEAD"]
target_origin_id = var.origin_www_id
compress = "true"
cache_policy_id = aws_cloudfront_cache_policy.no-cookies.id
Expand All @@ -350,8 +350,8 @@ resource "aws_cloudfront_distribution" "www_distribution" {

ordered_cache_behavior {
path_pattern = "/alerts"


allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
target_origin_id = var.origin_notify_id
compress = "false"
cache_policy_id = "4135ea2d-6df8-44a3-9df3-4b5a84be39ad"
Expand All @@ -360,8 +360,8 @@ resource "aws_cloudfront_distribution" "www_distribution" {

ordered_cache_behavior {
path_pattern = "/alerts/*"


allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
target_origin_id = var.origin_notify_id
compress = "false"
cache_policy_id = "4135ea2d-6df8-44a3-9df3-4b5a84be39ad"
Expand Down Expand Up @@ -435,8 +435,8 @@ resource "aws_cloudfront_distribution" "assets_distribution" {
aliases = var.cloudfront_assets_distribution_aliases

default_cache_behavior {


allowed_methods = ["GET", "HEAD", "OPTIONS"]
cached_methods = ["GET", "HEAD"]
target_origin_id = var.origin_assets_id
cache_policy_id = "658327ea-f89d-4fab-a63d-7e88639e58f6"

Expand Down

0 comments on commit 70b07ba

Please sign in to comment.