清除浏览器数据是否也会清除 PWA 的数据?
Does clearing the Browser Data also clear out the data of a PWA?
我是 PWA 的新手,这个问题困扰着我。如果用户清除浏览器数据,它是否也会清除由 Progressive Web App 存储的数据,因为它的执行取决于浏览器?
是的。 this post 的 Google 工程师证实了这一点:
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.
我是 PWA 的新手,这个问题困扰着我。如果用户清除浏览器数据,它是否也会清除由 Progressive Web App 存储的数据,因为它的执行取决于浏览器?
是的。 this post 的 Google 工程师证实了这一点:
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.