- From: Anton Grischenko <notifications@github.com>
- Date: Wed, 10 Apr 2019 02:55:35 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 10 April 2019 09:56:00 UTC
> 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