Skip to content

Fix: Ensure timingInfo is returned on network fallback if SW static routing API is used #1774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025

Conversation

yoshisatoyanagisawa
Copy link
Collaborator

@yoshisatoyanagisawa yoshisatoyanagisawa commented May 30, 2025

According to the explainer, the worker final router source should be 'network' for a network fallback. The |timingInfo| is returned to make that happen.


Preview | Diff

@yoshisatoyanagisawa
Copy link
Collaborator Author

@quasi-mod I also found that "network" should be set if "fetch-event" is a matched router source, and fallback according to the explainer. Let me revise the algorithm like so.

Copy link
Contributor

@quasi-mod quasi-mod left a comment

Choose a reason for hiding this comment

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

Ah, thanks so much! I should have been more careful.
LGTM

@yoshisatoyanagisawa yoshisatoyanagisawa merged commit ef029c5 into w3c:main May 30, 2025
2 checks passed
github-actions bot added a commit that referenced this pull request May 30, 2025
…outing API is used (#1774)

SHA: ef029c5
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yoshisatoyanagisawa yoshisatoyanagisawa deleted the fetch_fallback branch May 30, 2025 06:26
github-actions bot added a commit to yoshisatoyanagisawa/ServiceWorker that referenced this pull request May 30, 2025
…outing API is used (w3c#1774)

SHA: ef029c5
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to asleekgeek/ServiceWorker that referenced this pull request May 30, 2025
…outing API is used (w3c#1774)

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

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.

2 participants