gpt4 book ai didi

browser-cache - 最大年龄是相对于上次修改日期还是请求时间?

转载 作者:行者123 更新时间:2023-12-04 04:50:40 25 4
gpt4 key购买 nike

当服务器提供 Cache-Control: max-age=4320000 时,

新鲜度是指请求时间后4320000秒,还是最后修改日期后?

最佳答案

RFC 2616 section 14.9.3 :

When the max-age cache-control directive is present in a cached response, the response is stale if its current age is greater than the age value given (in seconds) at the time of a new request for that resource. The max-age directive on a response implies that the response is cacheable (i.e., "public") unless some other, more restrictive cache directive is also present.

它总是基于请求的时间,而不是最后修改的日期。您可以通过在主要浏览器上进行测试来确认此行为。

关于browser-cache - 最大年龄是相对于上次修改日期还是请求时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17493041/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com