Can users clear the service worker’s cache?

I have created a progressive web application that uses caching, but it is not clear to me whether users (by accident or by appointment) can clear the service worker’s cache, which can clear my tracking data.

+5
source share
3 answers

When a user clears browser data / cookies, it clears all site stores, which include SW cache, cookies, local storage, indexeddb and any other local caching system.

+6
source

In addition, it Ctrl-F5forces the cache to be updated intended to abandon all cached content including service worker cacheand again retrieves all the content from the servers.

+1

"Clearing site data" in Chrome 76 will delete the caches and employee, but the remote employee will remain "active and working." So the thing to deal with.

0
source

Source: https://habr.com/ru/post/1649837/


All Articles