New issue
Advanced search Search tips

Issue 875431 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 853518



Sign in to add a comment

caches.match() could resolve immediately after first match is found

Project Member Reported by wanderview@chromium.org, Aug 17

Issue description

The `caches.match()` algorithm inspects all of the caches for a matching resource and returns the first found.  The search can abort after a response is discovered.  Currently, though, chromium continues to search all of the caches before returning any results:

https://cs.chromium.org/chromium/src/content/browser/cache_storage/cache_storage.cc?l=1052-1071&rcl=96e58815e52961e857d8ad1eb9d9ce65f41099e8

This code queues up a separate task to match against each cache.  These tasks run in sequence.  The BarrierClosure callback is only called after all of them complete.
 
Status: Available (was: Untriaged)
Making available. While this remains a P3, it's unlikely we'll have the resources to tackle it.
I would like to fix this issue if no one working on this. :)

> I would like to fix this issue if no one working on this. :)

No one is directly working on this, but I am planning to do a large rewrite of the cache_storage backend in the next few months.  This code will likely change as a result of that rewrite.

So while I'd be happy to see you contribute to the project, I worry that any effort on this bug would end up being wasted in the relatively near term.
Thank you so much for your concern. I understand and should find another issue.

Sign in to add a comment