Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新 sw.js 部署后发布,出现白屏 #238

Open
lixusophie opened this issue Nov 20, 2019 · 0 comments
Open

更新 sw.js 部署后发布,出现白屏 #238

lixusophie opened this issue Nov 20, 2019 · 0 comments

Comments

@lixusophie
Copy link

#212 (comment)

正如上面issue的第二个场景,当sw.js有更新,用户强制刷新,此时旧的 SW 接管的页面并不算关闭,所以还在请求 旧的静态资源,
但是不理解的是,发现此时 新的sw.js已经 更新最新的资源了,清除旧资源了,导致页面白屏,
用的 appshell 模版
LAVAS INFO lavas version: 2.2.12
LAVAS INFO lavas-core-vue version: 1.2.5

我现在的做法:将 core/service-worker.js 里的 注释掉的 workbox.skipWaiting();重新打开,就没问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant