对于 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 anExpires
header field to each object. -
Specify a value for Minimum TTL in CloudFront cache behaviors.
-
Use the default value of 24 hours.