https://github.com/WICG/service-worker-static-routing-api
https://w3c.github.io/ServiceWorker/#dom-routercondition-not
The ServiceWorker static routing API is an API used for routing the request to the network, the ServiceWorker fetch handler, or directly looking up from cache, and so on. Each route consists of a condition and a source, and the condition is used for matching the request.
For Chromium implementations, the "or" condition is only the supported condition. However, to write the condition more flexibly, supporting the "not" condition is expected, which matches the inverted condition inside.
https://github.com/w3ctag/design-reviews/issues/863
Issues addressed
No compatibility concerns.
This change just starts supporting the not condition. Since existing routes won't have the not condition, adding the not condition support won't affect any existing router rules.
Gecko: Positive (https://github.com/mozilla/standards-positions/pull/894)
WebKit: Positive (https://github.com/WebKit/standards-positions/issues/206)
Web developers: No signals
Other signals:
The "not" condition calculates the conditions below and inverts the result, such calculation may also take a time. Also, the element does not run concurrently. However, the inversion is very quick, and rules should be sequentially evaluated, it should not be a large performance risk.
n/a
This just adds the "not" condition. I believe the security risk is low.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
n/a
n/a The debuggability should not be changed by adding the not condition. Note that the "not" condition also shows up in chrome://serviceworker-internals and devtools.
Yes
This is a part of the ServiceWorker static routing API. There is no reason not enabling the feature in specific platforms.
Yes
* Main resource load should not match the condition with not
* Main resource load should match the condition without not
* Subresource load should not match with the not condition
* Subresource load should match with a file other than not
None
ServiceWorkerStaticRouterNotConditionEnabled
False
The feature should be implemented if the ServiceWorker static routing API has been implemented by the other browsers.
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
n/a This only adds the "not" condition. No backward compatibility issue should exist.
https://chromestatus.com/feature/5121714160926720?gate=5090378146643968
This intent message was generated by Chrome Platform Status, and modified a bit.
Flag name on chrome://flags
None
Finch feature name
ServiceWorkerStaticRouterNotConditionEnabled
Requires code in //chrome?
False
Tracking bug
Availability expectation
The feature should be implemented if the ServiceWorker static routing API has been implemented by the other browsers.
Estimated milestones
Anticipated spec changes
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
n/a This only adds the "not" condition. No backward compatibility issue should exist.
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5121714160926720?gate=5090378146643968
This intent message was generated by Chrome Platform Status, and modified a bit.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPNB-6VnjdThgwUG74T8dhpZ%2BtF6nDyuCJrWtB1ypn7dFrrEwg%40mail.gmail.com.
Flag name on chrome://flags
None
Finch feature name
ServiceWorkerStaticRouterNotConditionEnabled
Requires code in //chrome?
False
Tracking bug
Availability expectation
The feature should be implemented if the ServiceWorker static routing API has been implemented by the other browsers.
Estimated milestones
126 is already branched. Could you update the milestones for shipping?
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
LGTM2
/Daniel
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/021eb309-3e79-4af0-9a6e-2afc879f703en%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/021eb309-3e79-4af0-9a6e-2afc879f703en%40chromium.org.