新的 “Cache and origin request policy“ 与 ”legacy cache settings“ 中有哪些配置项效果相同?

0

【以下的问题经过翻译处理】 我们一直在使用以下 “Legacy cache settings” 创建 CloudFront 分发:打开屏幕截图

Headers: All
Query strings: All
Cookies: All

我们使用这些分发,以便我们可以托管来自不同客户的 SSL 证书,并将他们的流量重定向到我们的网络应用。

这些设置与新的 "Cache policy and origin request policy (recommended)" 有什么等效的地方?

profile picture
EXPERT
demandé il y a 5 mois45 vues
1 réponse
0

【以下的回答经过翻译处理】 您提供的 “Legacy cache settings” 有效地禁用了缓存,并将所有内容转发到源。您可以使用缓存策略和原始请求策略复制它,方法是使用托管策略,如下所示:

Cache policy: CachingDisabled
Origin request policy: AllViewer

CloudFront 中的缓存是高度可配置的,并且很少有人需要在所有情况下禁用缓存 - 您当然需要为动态内容执行此操作,但您应该尝试尽可能的为您拥有的任何静态内容实用它。我建议您阅读有关优化缓存和可用性的文档,以尝试最大限度地利用缓存:https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ConfiguringCaching.html

profile picture
EXPERT
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions