-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Introduction
Service workers scopes currently use a very simplistic URL matching mechanism. We have heard from a number of sites that scopes could benefit from a more expressive pattern syntax. In addition, web developers often need to match URLs in order to implement routing systems.
This proposal introduces a URL matching primitive that can be used both directly in javascript and in web platform APIs like service workers.
This proposal has been reviewed by the TAG.
There is also a detailed design doc that goes into greater API and chromium implementation details.
This proposal was discussed at TPAC 2019 and a virtual call around TPAC 2020.
The group decided at the latest meeting URLPattern should be spec'd under WICG to start. I'd like to move the explainer repo to WICG and rename it to urlpattern. Eventually the service worker bits will move out to the service worker WG repo.
Feedback (Choose One)
I welcome feedback in this thread, but encourage you to file bugs against the Explainer.