Re: [w3c/ServiceWorker] mode 'no-cors' showing error no 'access-control-allow-origin' header (#1064)

You cannot make no-cors requests with `cache.add` as it cannot tell you if the response was 404 or not. You can work around this by fetching the response with `fetch` then use `cache.put`, which allows you to store things like 404s.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1064#issuecomment-275061385

Received on Wednesday, 25 January 2017 09:37:54 UTC