- From: Ben Kelly <notifications@github.com>
- Date: Thu, 03 Sep 2015 13:16:14 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 3 September 2015 20:16:41 UTC
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