Re: [slightlyoff/ServiceWorker] Change add(request) and addAll(requests) behavior (e2a6d18)

It isn't a restriction, it's a feature. The feature is that addAll will reject if one or more of the responses is !ok. We made this change because this is what developers were expecting with this API.

With put, you pass in the response directly. You may have created it yourself, you may be creating a request-response mismatch. Since it's the lower level version, we assume you're checking the response yourself, and let you store whatever you want, even if it's a 404.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/commit/e2a6d18647b97707c7a571163eef7838f82ca611#commitcomment-18733826

Received on Monday, 22 August 2016 22:20:45 UTC