Re: [ServiceWorker] Consider producing distinct objects for the same entity to enable garbage collection (#416)

I'm not entirely clear about the promise resolution values of the cache methods:

```js
CacheStorage.match().then(response => {});
CacheStorage.open().then(cache => {});
Cache.match().then(response => {});
Cache.matchAll().then(responses => {});
Cache.keys().then(requests => {});
```

IMO, the resolved values of the promise returned from the above methods should be the same object as well. WDYT? /cc @wanderview 

To make it clear, resolved/returned `ServiceWorkerRegistration` objects / `ServiceWorker` objects are the same objects, and resolved/returned `Client` / `WindowClient` objects are distinct objects in the current spec.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/416#issuecomment-99809109

Received on Thursday, 7 May 2015 10:40:32 UTC