What new "Cache and origin request policy" matches our legacy cache settings?

0

We have been creating CloudFront distributions with the following "legacy cache settings": Open Screenshot

Headers: All
Query strings: All
Cookies: All

We use these distributions so we can host SSL certificates from our many customers, and redirect their traffic to our web app.

What is the equivalent of these settings with the new "Cache policy and origin request policy (recommended)"?

We were unfortunately not able to figure that out yet. Thank you for your help.

enuvo
질문됨 2년 전2523회 조회
1개 답변
1
수락된 답변

The legacy cache settings that you've provided effectively disable caching, and forward everything to the Origin. You can replicate this using cache policies and origin request policies, by using managed policies as follows:

Cache policy: CachingDisabled
Origin request policy: AllViewer

Caching in CloudFront is highly configurable, and it's very unusual that someone would need to disable caching in all cases - you will certainly need to do this for dynamic content, but you should try to maximize it for any static content that you have. I recommend that you read the documentation on optimizing caching and availability to try to maximize your use of the cache: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ConfiguringCaching.html

Allowing your content to be served from the cache will reduce the number of requests being made to your origin, and reduce response times and latency for your viewers.

AWS
전문가
Paul_L
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인