防止浏览器重载缓存内容的方法整理 a.可在Page_Load事件首部加上: Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)) //使用SetExpires方法设置过期日期为当前日期时间的前一秒Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache) //使用SetCacheability方法设置Cache-Control HTTP标头Response.Cache.SetValidUntilExpires(false) //使用SetValidUntilExpires方法指定ASP.Net缓存是否忽略无效Cache-Control标头 b.可在Html代码中加入: <HEAD> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="0"> </HEAD> c.在重新调用原页面的时候给页面传一个随机数:Href="*****.aspx?"random=random()" Keyword: 重载缓存,清空缓存,缓存 转载于:https://www.cnblogs.com/Qizai/archive/2007/08/27/872026.html