【问题标题】:What is the timespan type of max-age in the HTTP response header? Seconds, minutes?HTTP 响应标头中 max-age 的时间跨度类型是什么?秒,分钟?
【发布时间】:2011-08-01 05:19:39
【问题描述】:

在我网站的 HTTP 响应标头中,它返回的标头包含 以下值。

"Cache-Control: max-age=3600"

3600 是秒还是分钟?

【问题讨论】:

    标签: http httpwebresponse response-headers


    【解决方案1】:

    增量秒。 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3

    最大年龄

    表示客户端愿意接受年龄不大于指定时间(以秒为单位)的响应...

    【讨论】:

      【解决方案2】:

      以秒为单位,因此您引用的值对应于 1 小时。

      【讨论】:

      • 起初很困惑,但这澄清了它,谢谢你的直截了当的回答
      猜你喜欢
      • 1970-01-01
      • 2022-10-19
      • 2020-08-11
      • 2022-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-04
      相关资源
      最近更新 更多