Re: [w3c/ServiceWorker] Tee-ing Cache.put()? (#1367)

I tend to write it as:

```js
event.respondWith(async function() {
  const response = await fetch(url);
  event.waitUntil(cache.put(url, response.clone()));
  return response;
}());
```

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

Received on Tuesday, 4 December 2018 12:12:03 UTC