【问题标题】:Force clearing cache in IE8IE8强制清除缓存
【发布时间】:2016-07-08 15:50:34
【问题描述】:

以下是尝试清除缓存的代码:

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

【问题讨论】:

    标签: c# jquery asp.net internet-explorer-8


    【解决方案1】:

    你可以试试这个吗:

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

    网站是否已经发布?如果没有,如果从未使用过缓存,您提到的标签将起作用。您可以简单地清除自己的缓存,当用户获得第一个版本时,它不会被缓存。如果用户已经缓存了页面,我的标签应该是一个更好的主意。

    请告诉我它是否有效。

    【讨论】:

      【解决方案2】:

      尝试改变

      <meta http-equiv="expires" content="-1" />
      

      <meta http-equiv="expires" content="0" />
      

      【讨论】:

        猜你喜欢
        • 2017-05-19
        • 2011-05-02
        • 2016-02-18
        • 2014-12-23
        • 2019-01-28
        相关资源
        最近更新 更多