- From: Ben Kelly <notifications@github.com>
- Date: Thu, 10 Mar 2016 07:31:09 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Thursday, 10 March 2016 15:31:39 UTC
@annevk, so you think these should have different behavior? Where a fetch event is generated from an <img> element: ``` evt.respondWith(fetch('http://otherorigin.com/cats.jpg', { mode: 'no-cors', method: 'HEAD' })); ``` Vs: ``` // cache populated with a GET providing the body evt.respondWith(cache.match(new Request('http://otherorigin.com/cats.jpg', { mode: 'no-cors', method: 'HEAD' }))); ``` You are saying that code snippet 1 should NOT show the image in the <img> element, but snippet 2 should show the image? Per the current spec language both of these snippets result in the same behavior. The image is not shown because the Response was created via a HEAD Request. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/710#issuecomment-194905836
Received on Thursday, 10 March 2016 15:31:39 UTC