I understand service worker store all static files and dynamic data in cache memory of browser and makes a website offline. But I am curious to know that, Is there any limit of how much data service worker can store in browser cache memory per origin. Like local-storage has limit of 10 MB per origin (in most browser).
Asked
Active
Viewed 1,309 times
2
-
Possible duplicate of [What is the memory limit for a service worker?](http://stackoverflow.com/questions/35242869/what-is-the-memory-limit-for-a-service-worker) – Marco Castelluccio Jul 27 '16 at 18:00
1 Answers
3
It's not directly service worker's cache memory - it's Cache API's storage, which currently is available only through service worker. In the future it'll be regulated by Quota API.
Currently it varies between browsers. I was able to put ~500MB in Cache using service worker in Chrome and Chrome mobile, and was hitting timeout rather than exceeding any quota.
Probably it's similiar to AppCache in relevant browsers.

Karol Klepacki
- 2,070
- 1
- 18
- 30