vue 发布后页面缓存问题解决

vue 发布后,经常会出现页面缓存问题,更新的页面不能及时显示。

在index.html 文件heade中,增加以下内容,不使用页面缓存,解决此问题

<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> 

猜你喜欢

转载自blog.csdn.net/weixin_41003771/article/details/111984410