We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a71063 + 8169f7b commit 9826177Copy full SHA for 9826177
main.tf
@@ -28,7 +28,7 @@ resource "aws_cloudfront_cache_policy" "this" {
28
enable_accept_encoding_gzip = true
29
enable_accept_encoding_brotli = true
30
cookies_config {
31
- cookie_behavior = "all"
+ cookie_behavior = var.cf_max_ttl == 0 ? "none" : "all"
32
}
33
headers_config {
34
header_behavior = "none"
0 commit comments