text / html的默认浏览器缓存有效期 [英] Default browser cache expiration period for text/html

查看:798
本文介绍了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?

它取决于浏览器吗?

推荐答案

来自响应可缓存性的HTTP / 1.1规范


如果既没有缓存验证器也没有与响应关联的显式过期时间,我们不希望它被缓存,但某些缓存可能违反此期望(例如,当很少或没有网络连接可用时。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆