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

> but I know that the page will never try to access `https://myimagecdn.foo/some_path` so it's fine that both match.

That seems really fragile vs:

```js
if (url.origin === location.origin && url.pathname == '/some_path') {
  // …
}
```

I wouldn't want developers to be matching a path on all origins unless it's explicit.

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

Received on Wednesday, 9 January 2019 09:47:09 UTC