首页 > 其他 > 详细

vue项目,代码部署之后,如何解决浏览器存在缓存问题

时间:2020-03-23 16:18:33      阅读:1045      评论:0      收藏:0      [点我收藏+]

1.在index.html头部添加如下代码:

<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">

2.在nginx.conf页面添加如下代码:

location = /index.html {
    add_header Cache-Control "no-cache, no-store";
}

 

vue项目,代码部署之后,如何解决浏览器存在缓存问题

原文:https://www.cnblogs.com/jiaxiaonuo/p/12552607.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!