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

(编辑:jimmy 日期: 2024/9/19 浏览:2)

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