- From: Lewis Phạm <notifications@github.com>
- Date: Mon, 30 Mar 2015 03:09:58 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Monday, 30 March 2015 10:10:21 UTC
I feel it's a little bit weird when `Not Found` caches return `undefined` response instead of a `Not Found` error, because common IO operations often solve this situation with an error. ``` caches.match('/app.js').then(function(response){ console.log("Resource found"); }).catch(function(er){ if(er.code === 'NOT_FOUND'){ console.log("Resource Not Found"); } }); --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/666
Received on Monday, 30 March 2015 10:10:21 UTC