Skip to content

Commit

Permalink
min ttl to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Dec 3, 2024
1 parent f340c1f commit 4d22583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infra/modules/service/cdn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ resource "aws_cloudfront_cache_policy" "default" {

name = "default"

# Default to caching for 1 hour, with a minimum of 1 minute.
# Default to caching for 1 hour.
# The default TTL can be overriden by the `Cache-Control max-age` or `Expires` headers
# There's also a `max_ttl` option, which can be used to override the above headers.
min_ttl = 60
min_ttl = 0
default_ttl = 3600

parameters_in_cache_key_and_forwarded_to_origin {
Expand Down Expand Up @@ -77,10 +77,10 @@ resource "aws_cloudfront_distribution" "cdn" {
compress = true
viewer_protocol_policy = var.cert_arn == null ? "allow-all" : "redirect-to-https"

# Default to caching for 1 hour, with a minimum of 1 minute.
# Default to caching for 1 hour.
# The default TTL can be overriden by the `Cache-Control max-age` or `Expires` headers
# There's also a `max_ttl` option, which can be used to override the above headers.
min_ttl = 60
min_ttl = 0
default_ttl = 3600
}

Expand Down

0 comments on commit 4d22583

Please sign in to comment.