DEV Community

amarj3142
amarj3142

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)

Collapse
 
jsardev profile image
Jakub Sarnowski

Check out the MDN article.