页面中防止缓存的解决方法
在弹出的模态窗口中如果有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'>
在<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'>
很赞哦!()
大图广告(830*140)