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 #828

Closed
yoshisatoyanagisawa opened this issue Jun 19, 2023 · 2 comments · Fixed by #894
Closed

ServiceWorker static routing API #828

yoshisatoyanagisawa opened this issue Jun 19, 2023 · 2 comments · Fixed by #894

Comments

@yoshisatoyanagisawa
Copy link

Request for Mozilla Position on an Emerging Web Specification

Other information

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.

@mkruisselbrink
Copy link

FYI, I just merged the spec PR for this. Happy to take any additional feedback you might have into account though.

@sefeng211
Copy link
Member

(Implementation bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1855580)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants