Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching over to managed cache/origin policies, general advice #229

Closed
rromanchuk opened this issue Aug 1, 2020 · 2 comments
Closed

Switching over to managed cache/origin policies, general advice #229

rromanchuk opened this issue Aug 1, 2020 · 2 comments

Comments

@rromanchuk
Copy link

I'm trying to diff whats currently in the cloudformation template using the legacy DefaultCacheBehavior and was looking for guidance on if there is an existing policy that work well with this deployment.

I'm currently testing Managed-CORS-CustomOrigin and Managed-CachingOptimized, just looking for a second pair of eyes to check if i'm missing anything obvious.

I deployed on a staging environment and there is a distinct increase in cache hits on deployment date, still need to verify i didn't break something else though.

Screen Shot 2020-08-01 at 12 25 13 PM

Reference:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html

@beomseoklee
Copy link
Member

@rromanchuk Thanks for your opinion.

We haven' considered to use the managed cache policy and origin request policy, but we will investigate this one. If no managed policy fits into our case, we might think to create a custom policy. Since we are using the legacy cache setting, it could be valuable to use new settings instead of the legacy cache settings.

@G-Lenz
Copy link
Contributor

G-Lenz commented Jan 29, 2021

We've added a CloudFront cache policy and a CloudFront origin request policy in v5.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants