mozilla / remote-newtab

Remotely-hosted New Tab Page
https://mozilla.github.io/remote-newtab/src/
Mozilla Public License 2.0
15 stars 7 forks source link

CacheTask's hasCacheEntry method should use caches.matches() #71

Closed marcoscaceres closed 9 years ago

marcoscaceres commented 9 years ago

Make hasCacheEntry to use caches.matches() instead. That would make the cache name optional.

marcoscaceres commented 9 years ago

For lookups relying on matches, then using the cache's API directly seems best. This is because CacheTasks only provides a bit of efficiency with using pre-opened caches, but not much else.