[w3c/ServiceWorker] Maximum file size that cache should support (Issue #1770)

elkurin created an issue (w3c/ServiceWorker#1770)

The caching mechanism, utilizing cache.add() and cache.addAll(), does not currently enforce a size limitation on files being added.

Historically, this posed no major issue as typical use cases did not involve extremely large files.
Recently, however, the use of caching for Large Language Models (LLMs) has led to attempts to cache files larger than 2 GB.
For example, Chrome has a bug on opening 2 GB+ file in CacheStorage:  https://crbug.com/391398191

It's not realistic to support infinite size, so it would be beneficial to specify a size limitation.

My proposal would be around 100 - 200 GB.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1770
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1770@github.com>

Received on Friday, 16 May 2025 09:57:47 UTC