Re: [w3c/ServiceWorker] consider fetching service worker scripts with no-cache by default (#893)

> What does useCache mean exactly, to cache the service worker file or not? please explain

@kgrosvenor I suppose by default browsers now use `Cache-control: no-cache`. That means, browsers will try to update sw.js by asking server (etag or max-age). If you want to get old behavior, you can set `{ useCache: true }`. With it, browser will respect your Cache-control headers. But still forcibly update sw.js if more than 24 hours have passed.

-- 
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/893#issuecomment-481624257

Received on Wednesday, 10 April 2019 09:56:00 UTC