像php可以这样设置头部缓存
header("Cache-Control: no-store, no-cache");
html怎么设置头部缓存?
具体的说html怎么设置响应头
Cache-Control: no-cache
像php可以这样设置头部缓存
header("Cache-Control: no-store, no-cache");
html怎么设置头部缓存?
具体的说html怎么设置响应头
Cache-Control: no-cache
<meta http-equiv="Cache-Control" contect="no-cache">
其实浏览器发起请求的时候默认会为 no-cache
。
再一个你可以在 发起请求的时候设置,比如用 fetch axios
的时候。
1 回答4.2k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
2 回答2.3k 阅读✓ 已解决
3 回答2.2k 阅读
2 回答1.1k 阅读✓ 已解决
2 回答832 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
用于设定网页的到期时间,一旦过期则必须到服务器上重新调用。需要注意的是必须使用GMT时间格式;
用于设定禁止浏览器从本地机的缓存中调阅页面内容,设定后一旦离开网页就无法从Cache中再调出;