Re: [w3c/ServiceWorker] Does changing updateViaCache mint a new ServiceWorkerRegistration or update them all? (#1189)

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