HTML meta pragma no-cache 页面缓存
不缓存页面(为了提高速度一些浏览器会缓存浏览者浏览过的页面,通过下面的定义,浏览器一般不会缓存页面,而且浏览器无法脱机浏览.)
<meta http-equiv="pragma" content="no-cache" />
不缓存页面(为了提高速度一些浏览器会缓存浏览者浏览过的页面,通过下面的定义,浏览器一般不会缓存页面,而且浏览器无法脱机浏览.)
<meta http-equiv="pragma" content="no-cache" />
//在jquery Ajax中取消页面缓存
$HttpX=$.ajax({
type:"GET",//type:"POST"
url :Server+'gSever.php?rand='+Math.random(),
data:{},
dataType:"json",
cache:false,//取消页面缓存
timeout:30000,
success:function(){
//code
}