简体   繁体   English

ServiceWorker数据存储在哪里?

[英]Where are ServiceWorker data stored?

I'm playing with ServiceWorker api for quite a while, but cannot figure out, where are the cached files stored on my hard drive and if they're accessible from outside of browser context. 我使用ServiceWorker api已有相当长的一段时间,但无法弄清楚存储在我的硬盘驱动器上的缓存文件在哪里,以及是否可以从浏览器上下文外部访问它们。 Any tips highly appreciated! 任何提示高度赞赏!

Cheers, Wojtek 干杯,Wojtek

For Firefox, in the storage subdirectory of your Firefox profile. 对于Firefox,在Firefox配置文件的storage子目录中。

Eg ~/.mozilla/firefox/z4o9asac.default/storage/default/http+++localhost+3003/cache 例如〜/ .mozilla / firefox / z4o9asac.default / storage / default / http +++ localhost + 3003 / cache

我发现的唯一东西是目录~/.config/google-chrome/Profile 1/Service Worker (在Ubuntu上),但那里似乎只是SW的实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM