IT码农库

您当前所在位置:首页 > 网页制作 > 心得技巧

心得技巧

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

互联网 佚名2010-12-18心得技巧5999
在弹出的模态窗口中如果有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'>
大图广告(830*140)