Skip to content
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

ServiceWorker Static Routing API #102

Closed
yoshisatoyanagisawa opened this issue Jun 18, 2023 · 4 comments
Closed

ServiceWorker Static Routing API #102

yoshisatoyanagisawa opened this issue Jun 18, 2023 · 4 comments

Comments

@yoshisatoyanagisawa
Copy link

Introduction

This API allows developers to configure the routing, and allows them to offload simple things ServiceWorkers do. If the condition matches, the navigation happens without starting ServiceWorkers or executing JavaScript, which allows web pages to avoid performance penalties due to ServiceWorker interceptions.

Starting ServiceWorkers is known to be a slow process, and web users need to wait for its startup if the ServiceWorker intercepts loading the page resources. At the same time, the ServiceWorker brings flexibility to the transport layer, and it behaves as a client-side proxy. Developers can implement offline support or provide client-side content modification with it. Currently, ServiceWorkers intercept all requests for pages within their scope, which brings a performance penalty within the scope.

Feedback

Please provide all feedback below.
Explainer "ServiceWorker Static Routing API"

yoshisatoyanagisawa added a commit to yoshisatoyanagisawa/ServiceWorker that referenced this issue Jul 10, 2023
A specification update to support the static routing API proposed in
WICG/proposals#102
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 14, 2023
This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 14, 2023
This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 18, 2023
This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 18, 2023
This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 18, 2023
This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <[email protected]>
Reviewed-by: Minoru Chikamune <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Commit-Queue: Yoshisato Yanagisawa <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1171605}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this issue Jul 18, 2023
This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <[email protected]>
Reviewed-by: Minoru Chikamune <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Commit-Queue: Yoshisato Yanagisawa <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1171605}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Jul 22, 2023
…r subresource loads., a=testonly

Automatic update from web-platform-tests
WPT: ServiceWorker static routing API for subresource loads.

This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <[email protected]>
Reviewed-by: Minoru Chikamune <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Commit-Queue: Yoshisato Yanagisawa <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1171605}

--

wpt-commits: d6ae6c83c103fdf28aefd9fb3445470c96c0e17b
wpt-pr: 41038
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Jul 24, 2023
…r subresource loads., a=testonly

Automatic update from web-platform-tests
WPT: ServiceWorker static routing API for subresource loads.

This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <sisidovskichromium.org>
Reviewed-by: Minoru Chikamune <chikamunechromium.org>
Reviewed-by: Kouhei Ueno <kouheichromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawachromium.org>
Reviewed-by: Kent Tamura <tkentchromium.org>
Cr-Commit-Position: refs/heads/main{#1171605}

--

wpt-commits: d6ae6c83c103fdf28aefd9fb3445470c96c0e17b
wpt-pr: 41038

UltraBlame original commit: b5f983a66877126f278d41b511c32f703f62f63d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Jul 24, 2023
…r subresource loads., a=testonly

Automatic update from web-platform-tests
WPT: ServiceWorker static routing API for subresource loads.

This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <sisidovskichromium.org>
Reviewed-by: Minoru Chikamune <chikamunechromium.org>
Reviewed-by: Kouhei Ueno <kouheichromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawachromium.org>
Reviewed-by: Kent Tamura <tkentchromium.org>
Cr-Commit-Position: refs/heads/main{#1171605}

--

wpt-commits: d6ae6c83c103fdf28aefd9fb3445470c96c0e17b
wpt-pr: 41038

UltraBlame original commit: b5f983a66877126f278d41b511c32f703f62f63d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Jul 24, 2023
…r subresource loads., a=testonly

Automatic update from web-platform-tests
WPT: ServiceWorker static routing API for subresource loads.

This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <sisidovskichromium.org>
Reviewed-by: Minoru Chikamune <chikamunechromium.org>
Reviewed-by: Kouhei Ueno <kouheichromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawachromium.org>
Reviewed-by: Kent Tamura <tkentchromium.org>
Cr-Commit-Position: refs/heads/main{#1171605}

--

wpt-commits: d6ae6c83c103fdf28aefd9fb3445470c96c0e17b
wpt-pr: 41038

UltraBlame original commit: b5f983a66877126f278d41b511c32f703f62f63d
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this issue Jul 24, 2023
…r subresource loads., a=testonly

Automatic update from web-platform-tests
WPT: ServiceWorker static routing API for subresource loads.

This CL adds the Web Platform Tests to test ServiceWorker static
routing API for subresources.

WICG proposal: WICG/proposals#102
Spec PR: w3c/ServiceWorker#1686

Change-Id: I7379d85b5a2208f248878abe9d1a920ad97d47ab
Bug: 1371756
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664026
Reviewed-by: Shunya Shishido <[email protected]>
Reviewed-by: Minoru Chikamune <[email protected]>
Reviewed-by: Kouhei Ueno <[email protected]>
Commit-Queue: Yoshisato Yanagisawa <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1171605}

--

wpt-commits: d6ae6c83c103fdf28aefd9fb3445470c96c0e17b
wpt-pr: 41038
@sisidovski
Copy link

Regarding this API, we see multiple interests from the developer community. e.g.
w3c/ServiceWorker#1373 (comment)
https://bugs.chromium.org/p/chromium/issues/detail?id=1468239

@cwilso
Copy link
Member

cwilso commented Aug 18, 2023

Sounds good. @yoshisatoyanagisawa if you want to transfer the repo for the explainer to me, I can transfer it into the WICG org (you will keep admin rights).

@yoshisatoyanagisawa
Copy link
Author

@cwilso Yes, please. Thank you for the help. Do I need to do something to make that happen?

@cwilso
Copy link
Member

cwilso commented Aug 31, 2023

This has now been migrated into WICG: https://github.com/WICG/service-worker-static-routing-api.

@cwilso cwilso closed this as completed Aug 31, 2023
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

No branches or pull requests

3 participants