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

ios手机端 经常要关闭页面重开才能刷新到最新,点击刷新按钮还是旧版 #2391

Closed
dficonfont opened this issue Aug 29, 2018 · 2 comments · Fixed by #2403

Comments

@dficonfont
Copy link

dficonfont commented Aug 29, 2018

Version

3.0.1

Node and OS info

v8.11.2/npm 6.1.0

Steps to reproduce

在手机上(ios11/ios12)测试的时候,如果点击刷新按钮,会恢复到之前修改的版本,要关闭网页重新打开才是最新版。这在测试的时候就有点不方便了,怎么解决,或者你们有没有遇到过这种情况?

What is expected?

得到正确的更新

What is actually happening?

得到的不是最新版

@dficonfont dficonfont changed the title 热更新页面不能及时刷新,ios手机端 经常要关闭页面重开才能刷新到最新,点击刷新按钮还是旧版 ios手机端 经常要关闭页面重开才能刷新到最新,点击刷新按钮还是旧版 Aug 29, 2018
@haoqunjiang
Copy link
Member

可能是 Safari 的 bug。
可以参考这个回复试试:#1132 (comment)

@dficonfont
Copy link
Author

用了楼上的方法解决了,看样子是app.js被缓存了

haoqunjiang added a commit to haoqunjiang/vue-cli that referenced this issue Aug 30, 2018
to circumvent a Safari caching issue

closes vuejs#2391, vuejs#1132
haoqunjiang added a commit that referenced this issue Sep 4, 2018
to circumvent a Safari caching issue

closes #2391, #1132
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

Successfully merging a pull request may close this issue.

2 participants