DEV Community


Posted on

how PWA Update automatically and remove old cache

Can anyone point me to any guide for getting my PWA to update automatically for users when there are changes or a new version? I have been looking around the web and it seems like maybe I have to customize the service-worker.js to check some version variable and invalidate the cache? what right way to go or something else?

Top comments (1)

jsardev profile image
Jakub Sarnowski

Check out the MDN article.