有时候对缓存的清理是一项很头疼的事,一般处理是在HTML的<head>中加
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
但有时候有一些浏览器不起作用,还得在后台(c#)加上
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
HttpContext.Current.Response.Expires = 0;
HttpContext.Current.Response.CacheControl = "no-cache";
HttpContext.Current.Response.AddHeader("Pragma", "No-Cache");