Re: [w3c/ServiceWorker] Declarative routing (#1373)

Some feedback I've received offline:

The string shortcut might lead developers to think something like `/articles/*.jpg` would 'work'. Also, it wouldn't be backwards compatible to add support for that later. It might be better to hold off on that shortcut, and later explore standardising globbing, which would be useful in other parts of the platform.

When `conditions` and `sources` are sequences, `conditions` is an 'and', whereas `sources` is more like an 'or'. This is weird. It might be better to drop sequences here in favour of explicit grouping like `RouterIfAny(...conditions)`, `RouterIfAll(...conditions)`, `RouterSourceFirst(...sources)`, `RouterSourceRace(...sources)` etc etc.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1373#issuecomment-451971503

Received on Monday, 7 January 2019 15:27:51 UTC