nearform / react-pwa

Hackernews Progressive Web Application built with React
https://hackernews.nearform.com
27 stars 14 forks source link

Clean up stale caches #64

Closed hizo closed 5 years ago

hizo commented 5 years ago

If you look at Cache Storage in devtools application tab you can see that caches are versioned by a service worker version variable which changes between builds. It would be best to delete those unused caches and their contents when a new service worker version is registered.