Re: [slightlyoff/ServiceWorker] Provide cache.putAll() method (#867)

@AshleyScirra

> 1. make a bunch of requests and wait for them all to complete
> 2. open a cache
> 3. write all responses

This really sounds like `addAll`.

```js
caches.open('static-v2').then(c => c.addAll(urls)).catch(err => {
  // if you don't want to leave the empty cache there:
  caches.delete('static-v2')
  throw err;
});
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/867#issuecomment-207595184

Received on Friday, 8 April 2016 20:41:40 UTC