-
Notifications
You must be signed in to change notification settings - Fork 58
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 #863
Comments
Hi @yoshisatoyanagisawa, We had a discussion in our breakout C meeting this week. One concern is that this proposal uses URLPattern but URLPattern has not been standardized. Is there any update on this? |
Thank you for reviewing our proposal! |
URLPattern is fully specified. It's true that it hasn't moved to a standards organization, but that's due to other browsers choosing not to implement, which isn't something we can speak to; you'd have to ask representatives of other browsers about their plans in that area. |
Hi @domenic - thanks for that clarification. As with a number of other current reviews, in that case, I'd like to express concerns that we are building new capabilities on top of shaky ground – that is, existing specifications that do not have consensus and do not have multiple implementations across multiple browsers. Further to that, we have another open review, Compression Dictionary Transport Could there be an option here to work together to specify static routing without relying on URLPattern, or to specify a fall-back? Alternatively, is there a way forward to bring URLPattern forward for standardization that could unblock multiple implementations? |
I don't think it's a good idea to invent a second URL pattern syntax for routing on the web platform, and you need some sort of syntax for specifying URL patterns if you're to statically give a pattern for which URLs are routed...
Thanks for highlighting this! We will work to ensure that feature uses the platform's common URL pattern syntax which is designed in the URL pattern spec. I filed WICG/compression-dictionary-transport#48, but it looks like this is already under discussion in WICG/compression-dictionary-transport#42.
Again, I think there's nothing blocking this besides the other implementations' interest. Chrome has done everything we can by laying out a full specification, web platform tests suite, and so on. The "way forward" is for another implementation to support standardization, and that's not something the Chrome team has control over. I'd really encourage the TAG to bring these concerns up with the other engines directly, instead of the current approach (which I see across multiple reviews) of asking Chrome team members for information on the future plans of other companies. |
URLPattern is quite popular judging from our polyfill https://www.npmjs.com/package/urlpattern-polyfill which has 3.5M weekly downloads. It is also implemented in Deno https://deno.land/[email protected]?s=URLPattern |
@domenic I think you know it's not the TAG's job to sell Google's vision of the web to other browser makers. Having said that, we are trying to drive cross-platform consensus around topics such as Powerful APIs and Web Privacy - I suggest you attend those sessions at this week's TPAC plenary to learn more. |
We're going to go ahead and close this with "satisfied with concerns" - we're happy with the overall design but we remain concerned about URLPattern's status on the standards track. Considering there seems to be a way forward for standardization, we'd encourage you to pursue that path. |
FYI the URL Pattern spec is now at the WHATWG and Webkit is positive on this proposal. |
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. Explainer: https://github.com/WICG/service-worker-static-routing-api TAG review: w3ctag/design-reviews#863 Co-authored-by: Takashi Nakayama <[email protected]> Co-authored-by: Shunya Shishido <[email protected]> Co-authored-by: Marijn Kruisselbrink <[email protected]>
こんにちは TAG-さん!
I'm requesting a TAG review of ServiceWorker static routing 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.
Further details:
You should also know that...
We'd prefer the TAG provide feedback as (please delete all but the desired option):
🐛 open issues in our GitHub repo for each point of feedback
The text was updated successfully, but these errors were encountered: