Re: [ServiceWorker] A header-based SW installation (#685)

On #684 I pitch the idea of:

```
// https://foo/sw.js
self.oninstall = event => {
  event.waitUntil(
    event.registerExternal('//font-service/sw.js')
  );
};
```

This would only require `'//font-service/sw.js` to have a header indicating scope. It doesn't allow page/subresource headers to register a ServiceWorker, but is there any benefit in doing this?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/685#issuecomment-95175569

Received on Wednesday, 22 April 2015 13:24:11 UTC