No pains, No gain
走过、路过、千万别错过
posts - 23,comments - 1,trackbacks - 0
方法1:
  1. xmlhttp.setRequestHeader("Cache-Control","no-cache");
  2. url += "&random="+Math.random();
  3. url += "&timestamp="+new Date().getTime();

方法二:

//处理页面缓存
  response.setHeader("Pragma","No-cache");
  response.setHeader("Cache-Control","no-cache");
  response.setDateHeader("Expires", 0);
posted on 2007-01-11 14:56 一缕青烟 阅读(572) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: