- From: Yves Lafon <notifications@github.com>
- Date: Mon, 04 Feb 2019 22:38:40 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 5 February 2019 06:39:02 UTC
@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