页面中防止缓存的解决方法

  发布时间:2010-12-18 23:10:43   作者:佚名   我要评论
在弹出的模态窗口中如果有POSTBACK,则会打开新窗口,而且调试的时候,弹出的模态窗口默认是有缓存,很不方便。
解决方案:
在<head>中加上以下代码,

复制代码
代码如下:

<base target="_self">
<meta http-equiv='pragma' content='no-cache'>
<meta http-equiv='Cache-Control' content='no-cache, must-revalidate'>
<meta http-equiv='expires' content='0'>

相关文章

最新评论