v0.63.0
Add support for a custom cache policy @dmattia (#140)
what
- AWS has a relatively new CloudFront feature named Cache Policies: https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-cloudfront-announces-cache-and-origin-request-policies/
- This adds support for the default cache to set an explicit cache policy
- This also sets restrictions on not allowing some other params to be set if the cache policy is specified, as is consistent with the AWS Console's wizard when creating a distribution.
This module could also create a cache policy itself if desired, I would gladly make that change.
Note: I support a module for creating cache policies: https://registry.terraform.io/modules/transcend-io/cache-policy/aws/latest
why
- Cache Policies are the easiest (only?) way to add brotli compression in CloudFront