index.html被缓存了被缓存的index.html引用的是旧版js、css资源,这些资源也被浏览器缓存过,所以加载的是上次访问的页面。修改下nginx配置就可以了location / { index index.html; if ($uri ~* "html$") { add_header Cache-Control "no-cache, no-store, max-age=0, must-revalidate"; } }
index.html被缓存了
被缓存的index.html引用的是旧版js、css资源,这些资源也被浏览器缓存过,所以加载的是上次访问的页面。
修改下nginx配置就可以了
location / {
}