Re: [w3c/ServiceWorker] Service worker Failed to load resource: net::ERR_UNSAFE_REDIRECT (#1001)

What @wanderview means is that when you do 

```
navigator.serviceWorker.register('/sw.js')
```

The actually requesting URL is the `sw.js` located in the root

but when you do 

```
navigator.serviceWorker.register('sw.js')
```

This is actually a Relative URL so what you actually request might be `/post/blah/sw.js`

-- 
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/1001#issuecomment-258487310

Received on Friday, 4 November 2016 16:56:48 UTC