nginx 前端配置后默认存在缓存,更新后扔会走缓存需要刷新才会更新。
解决办法,将nginx强缓存修改为协商缓存:

location = /index.html {
root /path/to/dist;
add_header Cache-Control "no-cache, no-store";
}
展开
9