-
Notifications
You must be signed in to change notification settings - Fork 388
Possible to use a single cache? #86
Comments
im not sure |
I had informally run the idea of multiple caches by some of the Chrome engineers during initial development, and there weren't any red flags raised at the time. But I wouldn't be surprised if there are yellow flags, and it's admittedly an ugly hack that I'd rather avoid. When More of an issue now is the best way to store the MD5 fingerprint metadata as part of a See w3c/ServiceWorker#657 (comment) for some related discussion of storing metadata for cache entries. |
cache.match() is fast now, but operations on a single cache run sequentially (there is a todo to make this parallel where possible) so it's possible you'll see performance degradation compared to lots of caches running in parallel |
Counter argument to that: at the moment sw-precache has to intercept the On Thu, 21 Apr 2016, 19:21 Josh Karlin, [email protected] wrote:
|
Finding the correct cache is done via an in-memory |
I think you should use a single cache. And then complain if the performance degrades :) |
Chatting with one of the engineers and the topic of using multiple caches (i.e. one per asset) could be poor in terms of the number of instances of caches in memory at any one time.
Is there a specific reason precache couldn't use a single cache?
The text was updated successfully, but these errors were encountered: