【发布时间】:2015-11-16 23:06:36
【问题描述】:
我试图防止在浏览器(chrome)上缓存机密文件,因此每次发出请求时,都从服务器获取文件,而不是从缓存中查看。我添加了以下 html 元标记,以指示 chrome 浏览器不缓存,但没有运气。
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
在检查网络流量时,缓存控制会根据请求设置为 max-age=0。并私下回复。
虽然我有这个在 IE 上工作。
【问题讨论】:
-
meta http-equiv 是个笑话,改用真正的 HTTP
标签: html google-chrome caching