Re: [fetch] URLs with username/password (#26)

@hiroshige-g pointed out an interesting case in https://crbug.com/474439

If a page accesses a resource (e.g. an image) via a URL with credentials, Service Worker can intercept the fetch and will see a Request object with credentials. This request can then be used as a key in a Cache for reading or writing.

It feels slightly odd to not be able to mint such Request objects; I suppose there are other such properties (e.g. `destination`) that can't be synthesized from script, but those aren't considered in the Cache matching algorithm.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/26#issuecomment-137560924

Received on Thursday, 3 September 2015 20:10:53 UTC