- From: Petka Antonov <notifications@github.com>
- Date: Mon, 25 Jan 2016 02:29:00 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Monday, 25 January 2016 10:29:27 UTC
ServiceWorker isn't for traditional caching exactly but for making your app work offline. For offline case you need to version your service worker with your assets like in this tutorial http://www.html5rocks.com/en/tutorials/service-worker/introduction/. Then when your app updates, you just bump the version which forces a service worker update and a new install. In the new install you add new assets to the cache keyed with the new version identifier and remove old caches that are based on key that is older than the current version identifier. There is probably a full featured offline app service worker tutorial somewhere but I forgot where. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/824#issuecomment-174463218
Received on Monday, 25 January 2016 10:29:27 UTC