vue项目,代码部署之后,如何解决浏览器存在缓存问题
时间:2020-03-23 16:18:33
收藏:0
阅读:1045
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";
}
原文:https://www.cnblogs.com/jiaxiaonuo/p/12552607.html
评论(0)