text / html的默认浏览器缓存有效期 [英] Default browser cache expiration period for text/html
问题描述
如果没有与缓存过期相关的标头(日期
, Last-Modified
和 ETag
)如果资源的 Content-Type
是text / html,那么资源的有效期是多少?
In case there's no cache expiration related headers (except Date
, Last-Modified
and ETag
) in an HTTP response what would be the expiration period for a resource if its Content-Type
is text/html?
它取决于浏览器吗?
推荐答案
如果既没有缓存验证器也没有与响应关联的显式过期时间,我们不希望它被缓存,但某些缓存可能违反此期望(例如,当很少或没有网络连接可用时。
If there is neither a cache validator nor an explicit expiration time associated with a response, we do not expect it to be cached, but certain caches MAY violate this expectation (for example, when little or no network connectivity is available).
这是理论,但我没有任何关于实际行为的信息。
That is the theory but I don’t have any information about actual behavior.
这篇关于text / html的默认浏览器缓存有效期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!