IE缓存解决办法

多种解决方案:
html文件:
设置MeTa信息
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">
 

aspx文件:
使用OutputCache 指令
<%@ OutputCache Duration="1" VaryByParam="none" %>

cs文件:
过 HttpResponse.Cache 属性操作 HttpCachePolicy.SetExpires 和 HttpCachePolicy.SetCacheability
Response.Buffer = true ;
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));

IIS设置:


图片缓存在上述办法中是无法解决的。处理方法是把图片URL后面加随机数或者时间戳。
img.src = XXX.gif?YYY
原文地址:https://www.cnblogs.com/figo/p/974403.html