Cache buster
What type of request is this?
Self-hosting improvement
Clear and concise description of the feature you are proposing
Hey,
I noticed that when it tools updates that my browser does not notice that he has to update the cached site.
Is there example of this tool in the wild?
No response
Additional context
This isn't a proposal for a new tool but rather an improvement of the site itself.
Validations
- [x] Check the feature is not already implemented in the project.
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- [x] Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
Hi @DenuxPlays, IT-Tools is PWA that could work offline, so it fetch all at each update. There could be a "non PWA" version that only works online and don't fetch assets.
oh have not noticed that.
TBH I am not sure if maintaining a "non PWA" version is worth it.
Maybe implementing a mechanism that checks if a new version is available if you have an internet connection would be better. Just something that users get notified when there are new tools or bug fixes would be great then
@DenuxPlays , as far as I read in vite-pwa docs, once set (and it has always been) to autoupdate, prompting for update "can be a pain" (as said by https://vite-pwa-org.netlify.app/guide/auto-update in a danger box). I really dont know what is means, probably a lot of breaks, JS error, need of Ctrl+F5... https://github.com/vite-pwa/vite-plugin-pwa/issues/228
By the way, the vite pwa plugin and workbox service worker always update when possible. May be I could add a generic message saying that application has been updated. But the link I can put into to let users know that may have changed will be: https://github.com/sharevb/it-tools/commits/chore/all-my-stuffs/
Okay Reading this documentation I think I have an error on my side maybe it does not update immediately and I need to keep the app open for a few moments.
I think implementing something is not worth the amount of maintenance that is required to keep it working.