-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CacheList#match - make cache name optional? #117
Comments
If we do this, please do define in detail which resource is returned in case of a duplicate match. |
Well, |
Sure, but that means you have to define how the caches are ordered relative to each other. |
What order do items iterate in a map? Could use that.
|
Maps are iterated in insertion order. As long as these are always author-defined, we're fine. Can they ever get created by the browser? |
Storing stuff in multiple caches is great, but leads to fetches like…
…as we search through caches for one with a match. It's possible, but unlikely to have two caches containing the same url. It'd be nice to swap the params of match around and make the cache name optional.
Much shorter. If the url exists in two caches, just return one of them.
The text was updated successfully, but these errors were encountered: