Linked Questions

Popular Questions

Instead of asking all users to delete their cache when an update is pushed, is there a script I can add to my app so that when the site is loaded it deletes the existing cache for the site?

I could remove the script when the app is complete but for development and testing purposes I deploy (or serve locally) multiple times a day, its a pain to have to delete my cache every time.

An even bigger pain is trying to get others to delete cache when I tell them the site has been updated and I need feedback.


EDIT: After much searching I think this How to remove a service worker registered in previous deploy from users' browsers with the newly deployed version of site (Firebase)? is similar to what the problem is, but the answers are not specific. It looks like the issue might be with a service worker but I am unsure how to implement a fix.

Related Questions