[ServiceWorker] Update service worker with a response object (#819)

I'm thinking about the ability to update service worker with a `Response` object It would give developers more control over service worker 
```
//fetch data directly
fetch('/service-workerjs')then(response => {
    ServiceWorkerRegistrationupdateWith(response)then(() => consolelog('Service Worker has been updated'));
});
//or retrieve data from cache storage
CacheStorageopen('main')then(cache => {
    cachematch('/service-workerjs')then(response => {
         ServiceWorkerRegistrationupdateWith(response)then(() => consolelog('Service Worker has been updated'));
    });
});
```

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

Received on Wednesday, 20 January 2016 08:39:11 UTC