terraform-aws-cloudfront-s3-cdn icon indicating copy to clipboard operation
terraform-aws-cloudfront-s3-cdn copied to clipboard

Cache and origin request settings

Open Sandayver opened this issue 3 years ago • 1 comments

Describe the Feature

Hi, are there plans to support Cache and origin request settings with cache policies (even built-in)

Expected Behavior

Currently, when you create the deployment, it will pick whitelist Use legacy cache settings with whitelist option where there should be a way to make it use Use a cache policy and origin request policy

Use Case

Alternatives Considered

Even if the module can pick build in policies like Managed-CachingOptimized it will be a huge win since custom policies are far more niche and a lot of deployment are more than fine with predefined ones.

Additional Context

it was not supported by terraform for a long time, but according to https://github.com/hashicorp/terraform-provider-aws/issues/14373, it is now.

Sandayver avatar Apr 07 '21 05:04 Sandayver

+1. Currently, there is no way (at least none that I'm aware of) to enable Brotli compression on the CloudFront edge. The cache needs to be switched to a cache policy with Brotli enabled.