【问题标题】:Why is Akamai cache-control max-age decreasing value?为什么 Akamai 缓存控制 max-age 的值会降低?
【发布时间】:2020-12-19 11:37:33
【问题描述】:

我正在使用 Akamai,当使用 honor origin cache control + expires 时,cache-control 标头 max-age 的值在每个后续请求中都会减小。在其他 CDN 上,我没有遇到相同的行为。

在我有Cache-Control: max-age=2592000, public 的应用程序上,响应标头中的 max-age 值似乎是 Akamai 从服务器获取资产的时间减去应用程序中指定的 max-age 时间。

为什么会这样?如何让 Akamai 回复 max-age=2592000, public

【问题讨论】:

    标签: performance cache-control akamai


    【解决方案1】:

    您可以通过“Downstream cacheability”轻松配置它 行为:»“从源传递可缓存性标头”»此隧道 Cache-Control 和/或 Expires 标头设置从源到 下游。

    或者,对于在边缘定义 TTL 的资源,您可以设置 this to "Full edge TTL (max-age)"。

    感谢@TimVereeke。

    【讨论】:

      猜你喜欢
      • 2018-05-08
      • 2017-07-16
      • 2011-02-25
      • 2015-12-04
      • 2018-03-11
      • 1970-01-01
      • 2012-11-21
      • 2012-12-02
      • 2023-03-12
      相关资源
      最近更新 更多