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

SW-Launch: Consider some kind of static routing and/or filtering #94

Open
mkruisselbrink opened this issue Sep 25, 2024 · 1 comment
Open
Labels
sw-launch Issues related to the service worker launch event proposal

Comments

@mkruisselbrink
Copy link
Collaborator

Spinning up a service worker for every navigation can be expensive. For the service worker fetch event there is a static routing API to make it possible to skip running the service worker depending on certain routing rules. We should consider if we need something similar for launch events as well. Either some kind of include/exclude pattern in the manifest or a similar route matching API at service worker install time.

@mkruisselbrink mkruisselbrink added the sw-launch Issues related to the service worker launch event proposal label Sep 25, 2024
@mkruisselbrink
Copy link
Collaborator Author

One option might be to add a third field to the RouterRule dict to override launch handling behavior for any navigation matching the condition, possibly combined with making source optional, defaulting to "fetch-event".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sw-launch Issues related to the service worker launch event proposal
Projects
None yet
Development

No branches or pull requests

1 participant