Skip to content

Commit

Permalink
Merge pull request #357 from jdno/remove-obsolete-behavior
Browse files Browse the repository at this point in the history
Remove unused cache behavior
  • Loading branch information
jdno authored Oct 23, 2023
2 parents ccf91e8 + b770863 commit a8f9734
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions terragrunt/modules/crates-io/cloudfront-webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,6 @@ resource "aws_cloudfront_distribution" "webapp" {
}
}

// Cache assets ignoring headers, query strings and cookies.
ordered_cache_behavior {
path_pattern = "/assets"
target_origin_id = "heroku"
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
compress = true
viewer_protocol_policy = "redirect-to-https"

forwarded_values {
headers = []
query_string = false
cookies {
forward = "none"
}
}
}

origin {
origin_id = "heroku"
domain_name = var.webapp_origin_domain
Expand Down

0 comments on commit a8f9734

Please sign in to comment.