-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Plugin PWA does not automatically update icons (requires users to clear cache) #5531
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
Comments
Did you find a solution? Thank you. |
I have two ways which I think will work, but I haven't tested them properly: 1.
|
I tried both and both options did not work. In both cases I had to reinstall the home screen app to see the new icon. There was supposed to be docs for the manifestOptions as of last year, but I don't see anything. This is my vue.config: |
Are you on iOS or Android? If you're on Android, check out https://web.dev/manifest-updates/ As for iOS, I do not know how they handle PWAs updating |
My apologies. I'm on Android. I will try again soon and report my findings. Thank you. |
Uh oh!
There was an error while loading. Please reload this page.
Version
4.4.1
Reproduction link
https://github.com/ninest/frequency
Environment info
Steps to reproduce
http-server
fromdist/
)public/img/icons
) and the faviconhttp-server
to serve the appNow if you open the website, the old favicon is still served. The user is required to clear the cache to see the new icons
What is expected?
The icons should be updated. I know that the new service worker will only activate after the second time the website has been visited. But this did not work either.
I thought that all images would have a random ID appended to them so the cache can be busted appropriately:
Perhaps
favicon.ico
would be changed tofavicon.783d33.ico
in production. Whenever the favicon changes, the random ID can changeWhat is actually happening?
The same icons are being served, I believe they are served from the cache
I tried using pwa.assetsVersion (setting it to '0.0.1'), but that seems to break it completely in offline mode. When I set it and go offline, every icon disappears, and I see this in the console:
The text was updated successfully, but these errors were encountered: