- From: Jake Archibald <notifications@github.com>
- Date: Fri, 08 Apr 2016 13:41:12 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Friday, 8 April 2016 20:41:40 UTC
@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