- From: Ben Kelly <notifications@github.com>
- Date: Mon, 21 Aug 2017 07:36:22 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 21 August 2017 14:36:55 UTC
We only just recently landed this in firefox nightly. There I think you will get: ``` var reg = await navigator.serviceWorker.getRegistration(url); reg.updateViaCache; // 'all'; var r = await register(sw, {updateViaCache: 'none'}); reg === r; // false reg.updateViaCache; // 'all' r.updateViaCache; // 'none' ``` I think this behavior is determined by step 5.3 here in the spec: https://w3c.github.io/ServiceWorker/#register-algorithm You should skip the short-circuit because the cache mode is different and get a new registration. -- 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/1189#issuecomment-323759227
Received on Monday, 21 August 2017 14:36:55 UTC