Skip to content

Conversation

@sisidovski
Copy link
Contributor

@sisidovski sisidovski commented Nov 20, 2025

This change is based on the discussion in whatwg/fetch#1737. We don't have to remove the entry from the race response map in the lookup-race-response-algorithm, as we don't want to limit de-duplicating the fetch(e.request) call once triggered in the fetch handler. fetch(e.request) can be called multiple times in one fetch handler.

The map entry is removed in the step 20 of the Create Fetch Event and Dispatch. That ensures that the added entry is removed.


Preview | Diff

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/de-deprecating/de-duplicating/ presumably?

I also wouldn't call this map entry removal redundant as it has a different effect.

Looks good otherwise.

@yoshisatoyanagisawa
Copy link
Collaborator

It is totally fine for me either to remove or not (use once or multiple times).
The discussion might be:
whatwg/fetch#1737 (comment)

I will wait for the description update.

@sisidovski
Copy link
Contributor Author

sisidovski commented Nov 25, 2025

Thank you! Updated the description. I'll add the test soon to ensure this behavior.

@yoshisatoyanagisawa yoshisatoyanagisawa merged commit a6ed7c8 into w3c:main Nov 26, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request Nov 26, 2025
)

SHA: a6ed7c8
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sisidovski sisidovski deleted the fix-race2 branch November 26, 2025 01:10
github-actions bot added a commit to asleekgeek/ServiceWorker that referenced this pull request Nov 26, 2025
…c#1807)

SHA: a6ed7c8
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to yoshisatoyanagisawa/ServiceWorker that referenced this pull request Nov 26, 2025
…c#1807)

SHA: a6ed7c8
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants