On May 9, 2014 1:16 PM, "Boris Zbarsky" <[email protected]> wrote: > > In particular, given that get() wants to return a Promise, why do we want values() to return a list of Cache objects synchronously? > > Similar for keys(): if has() needs to be async, then how can has() be sync. >
Exactly. both values() and keys() will be changed to async returning Promises. I'll be working on that part of the ED shortly. It's a bit behind the discussion going on in this ticket: https://github.com/slightlyoff/ServiceWorker/issues/226 > -Boris >
