- From: Lewis Phạm <notifications@github.com>
- Date: Wed, 20 Jan 2016 00:38:37 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 20 January 2016 08:39:11 UTC
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