跳转到内容
搜索文档

缓存级别

最后更新 查看 MarkdownAgent 设置

缓存级别决定 Cloudflare 应缓存多少网站的静态内容。Cloudflare 的 CDN 根据以下级别缓存静态内容。

  • No Query String:无查询字符串时从缓存提供资源。示例 URL:example.com/pic.jpg
  • Ignore Query String:无论查询字符串如何,向所有人提供相同资源。示例 URL:example.com/pic.jpg?ignore=this-query-string
  • Standard (Default):查询字符串每次更改时提供不同资源。示例 URL:example.com/pic.jpg?with=query

您可以在仪表板的 Caching > Configuration > Caching level 下调整缓存级别。

API 缓存级别值

如果您使用 API 更改缓存级别,值将与仪表板中显示的不同。请参阅下表了解 API 值如何映射到仪表板中显示的值。

仪表板 API
No Query String Basic
Ignore Query String Simplified
Standard (Default) Aggressive

这篇文档对您有帮助吗?