- From: Jake Archibald <notifications@github.com>
- Date: Wed, 10 Dec 2014 11:00:22 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 10 December 2014 19:00:49 UTC
Agree with @wanderview.
@annevk do you think this is a sensible thing to live in Fetch? An option to *only* get the response if it's currently in-flight. So:
```js
fetch('/').then(function(response) {
// ...
});
fetch('/', {
onlyInFlightStuffPlease: true
}).then(function(response) {
// ...
});
```
…would only result in one network request, and the 2nd response is a clone of the first? There are lots of details of course, just trying to work out if it's something we *should* enable. The "in-flight" request list would be origin specific of course.
---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/573#issuecomment-66503826
Received on Wednesday, 10 December 2014 19:00:49 UTC