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

Of course, you can't run anything like the fetch() method with the intercepted request since fetch() runs the Constructor algorithm as step 2.  Cache.add() also runs the Request constructor explicitly.

The only way it could end up in the Cache is if you do something like:

```
addEventListener('fetch', function(evt) {
  evt.respondWith(fetch(someOtherUrl).then(function(response) {
    cache.put(evt.request, response.clone());
    return response;
  }));
});
```

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

Received on Thursday, 3 September 2015 20:16:41 UTC