Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does clearing the Browser Data also clear out the data of a PWA?

I'm new to PWA and had this question bugging me. If a user clears out the browser data, will it also clear out the data which is stored by a Progressive Web App, as it depends on the browser for it's execution?

like image 268
Aditya Singh Parmar Avatar asked Mar 25 '18 20:03

Aditya Singh Parmar


People also ask

Is Clearing website data the same as clearing the cache?

To clear the web cache while keeping the browsing history saved, make sure, only the box cached images and files are checked in the Clear browsing data window. Then click the Clear data button. By doing so, only the browser cache will be cleared while the browsing history and cookies will be kept saved.

How do I clear PWA cache?

How do I clear PWA cache? It's possible that a hard-refresh (CMD + Shift + R on a Mac or CTRL + Shift + R on Windows) will clear the PWA cache properly but uninstalling the app is usually the best option.

What happens when you clear data on a website?

Web addresses you've visited are removed from the History page. Shortcuts to those pages are removed from the New Tab page. Address bar predictions for those websites are no longer shown.

How long does PWA cache last?

A PWA that goes unused for a 'few weeks' (we think it is 2 weeks) the iOS device deletes or purges the stored values. That is unless it has been added to the homescreen.


1 Answers

Yes it would. This is confirmed by a Google Engineer in this post:

When a user clears their browsing data / cookies, this clears all site storage which includes the SW cache, cookies, local storage, indexeddb, and any other local caching system.

Note this will also unregister all service workers, meaning you won't be in a scenario where your service worker is registered and controlling a page without the any of the cached assets from the install step.

like image 132
noogui Avatar answered Sep 28 '22 07:09

noogui