0

如何关闭特定网站的浏览器缓存,因此使用 F5 刷新它就像使用 ctrl + F5 刷新它一样?我注意到该设置:

缓存控制:无缓存

只是行不通。这个缓存在点击 F5 后破坏了我的网站,因为我不确定它缓存了什么,而且那里有很多动态操作。

所以有两个问题:

  • 如何关闭此缓存?
  • 如何检查正在缓存的内容?
4

2 回答 2

0

有任何研究工作……这是您对使用 HTML 的完美无缓存内容的答案:

<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" />

==>来自这篇文章:https ://stackoverflow.com/a/2068407/2213706 。

这里有一些关于If-Modified-Since标题的东西:

==> https://stackoverflow.com/a/1192640/2213706

于 2013-07-13T09:16:36.447 回答
0

在<头>

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />

或 Ctrl + shift + R

或 Ctrl + F5

或从浏览器中删除缓存

或私人浏览

于 2016-11-02T08:12:08.700 回答