跳转到内容
搜索文档

Edge 和 Browser Cache TTL

最后更新 查看 MarkdownAgent 设置

Edge Cache TTL

Edge Cache TTL(Time to Live)指定在 Cloudflare 全球网络中缓存资源的最长时间。Edge Cache TTL 在响应标头中不可见,最小 Edge Cache TTL 取决于计划类型。

FreeProBusinessEnterprise

Availability

Yes

Yes

Yes

Yes

Minimum Edge Cache TTL

2 hours

1 hour

1 second

1 second

有关如何设置 Edge Cache TTL 的更多信息,请参阅 Cache rules

Browser Cache TTL

Browser Cache TTL 设置访问者浏览器中缓存资源的过期时间。默认情况下,Cloudflare 遵循 ExpiresCache-Control 标头中设置的缓存过期,但在以下情况下会覆盖这些标头:

  • 源站 Web 服务器的 ExpiresCache-Control 标头值小于 Cloudflare Browser Cache TTL 设置。
  • 源站 Web 服务器不发送 Cache-ControlExpires 标头。

除非在 cache rule 中特别设置,如果您将 Browser Cache TTL(浏览器缓存 TTL) 设置为 Respect Existing Headers(遵循现有标头),Cloudflare 不会覆盖或插入 Cache-Control 标头。

FreeProBusinessEnterprise

Availability

Yes

Yes

Yes

Yes

Minimum Browser Cache TTL (Page Rules)

2 minutes

2 minutes

2 minutes

30 seconds

Minimum Browser Cache TTL

1 second

1 second

1 second

1 second

Default Browser Cache TTL

4 hours

4 hours

4 hours

4 hours

有关设置 Browser Cache TTL 的更多信息,请参阅设置 Browser Cache TTL

这篇文档对您有帮助吗?