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

Add docs for service worker static routing API #527

Open
5 tasks
sisidovski opened this issue Feb 22, 2024 · 1 comment
Open
5 tasks

Add docs for service worker static routing API #527

sisidovski opened this issue Feb 22, 2024 · 1 comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. proposal Auto label for new proposals added via the suggestion form

Comments

@sisidovski
Copy link

Proposal

Service worker static routing API is the newly introduced API. 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.

We need a developer friendly doc that explains the API surface, concept, and how to use it.

Primary contacts: @sisidovski, @yoshisatoyanagisawa

Browser support

Chromium: crbug.com/40241479
Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1855580
WebKit: https://bugs.webkit.org/show_bug.cgi?id=269893

Tasks

  • Currently InstallEvent is labelled as deprecated, we have to remove it.
  • The API adds addRoutes function to InstallEvent. Update the page to contain API surface and list all input options that can take.

Dependencies

Additional information

Are you willing to support this work?

Yes

@sisidovski sisidovski added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. proposal Auto label for new proposals added via the suggestion form labels Feb 22, 2024
@yoshisatoyanagisawa
Copy link

Thanks for filing the issue.
In addition to whatwg/urlpattern#219, we will also have a dependent PR that address whatwg/urlpattern#218. I will work on it after whatwg/urlpattern#219.

It might be nice if we can provide a demo page and source there, which people can just clone and try their own routes.
Something like https://googlechrome.github.io/samples/service-worker/registration-events/ or https://bncb2v.csb.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. proposal Auto label for new proposals added via the suggestion form
Projects
None yet
Development

No branches or pull requests

2 participants