CloudFront 缓存持续时间和最小 TTL

Posted cloudrivers

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CloudFront 缓存持续时间和最小 TTL相关的知识,希望对你有一定的参考价值。

对于 Web 分配,要控制对象在 CloudFront 缓存中保留多长时间后 CloudFront 将另一请求转发到源,您可以:

  • 配置源,以添加 Cache-Control 或 Expires 标头字段到每个对象。

  • 在 CloudFront 缓存行为中指定最小 TTL 的值。

  • 使用默认值 24 小时。

For web distributions, to control how long your objects stay in a CloudFront cache before CloudFront forwards another request to your origin, you can:

  • Configure your origin to add a Cache-Control or an Expires header field to each object.

  • Specify a value for Minimum TTL in CloudFront cache behaviors.

  • Use the default value of 24 hours.

以上是关于CloudFront 缓存持续时间和最小 TTL的主要内容,如果未能解决你的问题,请参考以下文章