//CleanClientCache 清除客户端缓存
#region
protected void CleanClientCache()
{
StringBuilder str = new StringBuilder();
str.Append("<meta http-equiv=\"Expires\" content=\"0\">");
str.Append("<meta http-equiv=\"Cache-Control\" content=\"no-cache\">");
str.Append("<meta http-equiv=\"Pragma\" content=\"no-cache\">");
HttpContext.Current.Response.Write(str.ToString());
}
#endregion
//CleanServerCache 清除服务器端缓存
#region
protected void CleanServerCache()
{
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
HttpContext.Current.Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
HttpContext.Current.Response.Expires = 0;
HttpContext.Current.Response.CacheControl = "no-cache";
HttpContext.Current.Response.Cache.SetNoStore();
}
#endregion