天天看点

vue手机端h5 html页面引入meta标签 解决h5页面重新发布后缓存上次文件的问题

在根目录的index.html head标签里引入如下内容 可解决因为浏览器缓存文件的问题

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />