解决 Window.Open 页面缓存问题

1、在Asp页面首部加入  
   Response.Buffer   =   True    
   Response.ExpiresAbsolute   =   Now()   -   1    
   Response.Expires   =   0    
   Response.CacheControl   =   "no-cache"    
   Response.AddHeader   "Pragma",   "No-Cache"  
   
2、在HtML代码中加入  
   <HEAD>  
   <META   HTTP-EQUIV="Pragma"   CONTENT="no-cache">  
   <META   HTTP-EQUIV="Cache-Control"   CONTENT="no-cache">  
   <META   HTTP-EQUIV="Expires"   CONTENT="0">  
   </HEAD>  
   
3、在重新调用原页面的时候在给页面传一个参数  
   Href="****.asp?random()"  
   
4、xxx.aspx.cs中:  
   Context.Response.Cache.SetCacheability(HttpCacheability.NoCache);    

比较倾向于第三种。

KidYang
原文地址:https://www.cnblogs.com/EasyLive2006/p/1389930.html