[whatwg/fetch] Attempt to reuse preloaded responses. (PR #1342)

Before any particular fetch steps are performed, see if there is a
matching request already in the preload store and consume it.

This is called from the main fetch to avoid race conditions.

Depends on https://github.com/whatwg/html/pull/7260


<!--
Thank you for contributing to the Fetch Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [ ] At least two implementers are interested (and none opposed):
   * …
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * …
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: …
   * Firefox: …
   * Safari: …

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1342


-- Commit Summary --

  * <a href="https://github.com/whatwg/fetch/pull/1342/commits/d6f74784235a36c63e5fba4f746fb4b2ae7e3750">Attempt to reuse preloaded responses.</a>

-- File Changes --

    M fetch.bs (15)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1342.patch

https://github.com/whatwg/fetch/pull/1342.diff


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1342

Received on Tuesday, 26 October 2021 09:19:37 UTC