心得技巧

关注公众号 jb51net

关闭
网页制作 > 心得技巧 >

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

脚本之家

解决方案:
在<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'>