Re: [fetch] Proposed backward-incompatible change: requiring cloning all requests/responses (#61)

>>    I think cache.put() also calls the Request constructor now to sanitize the input. That would set the used flag through some mechanism, no?
>
> Which step in https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-put doest this?
>
> The step 10 says
>
>    Set the request dictionary member of o to a Request object associated with r.
>
> Isn't this "Request" the same object as the argument of cache.put() in the case where the argument is a Request object (not a string)?

You're right.  Its just .add()/addAll() that do that.

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

Received on Thursday, 25 June 2015 18:54:54 UTC