用户可以清除 Service Worker 缓存吗? [英] Can users clear the service worker cache?

查看:152
本文介绍了用户可以清除 Service Worker 缓存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个使用缓存的渐进式 Web 应用程序,但我不清楚用户是否可以(无意或故意)清除 Service Worker 缓存,这可能会清除我的跟踪数据.

I've built a Progressive Web App that uses caching, but it's unclear to me whether users can (accidentally or on purpose) clear the service worker cache, which may clear my tracking data.

推荐答案

当用户清除浏览数据/cookie 时,这将清除所有站点存储,包括软件缓存、cookie、本地存储、indexeddb 和任何其他本地缓存系统.

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.

这篇关于用户可以清除 Service Worker 缓存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆