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

@asakusuma it depends on the exact scope you want to match... and exclude. 
To take one of easiest syntax to express and combine facts:
```
  url: { startsWith: '/profile/123',  ignoreSearch: true,
  and: {
    not: {
      url: { endsWith: '.jpg', ignoreSearch: true},
      },
    },
  }
```

Being able to exclude and use boolean combinators is essential here to really express use-cases that are not the most simple ones. 
Also, syntax-wise, 
```
and: {  url: { startsWith: '/profile/123',  ignoreSearch: true},
        not: { url: { endsWith: '.jpg', ignoreSearch: true} }
     }
```
Looks better.



-- 
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-460529833

Received on Tuesday, 5 February 2019 06:39:02 UTC