You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look like your snippet does not use the right values to put in cache white list. It appears it takes caches names rather than paths.
Also goapp is using only one cache so it will never be deleted.
I think having the code that already match what is suggested by google is a good to have, especially if in the future we decide to use another cache or rename the current one.
When a service worker updated due to a new version released. New versions of the files should be cached and old ones should be removed.
Google has a recommended way of doing this explained here:
https://developers.google.com/web/fundamentals/primers/service-workers#update-a-service-worker
We can change activate the function to this if you accept I would like to create a pull request.
The text was updated successfully, but these errors were encountered: