Re: [ServiceWorker] what should the document base URI for an intercepted navigation (#787)

Summary from https://jakearchibald.com/2016/service-workers-and-base-uris/:

[[1](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2505916613)] - `event.respondWith(fetch(event.request))` should preserve regular browser behaviour. Base url should come from the request url. (This is contradictory, the impression is you'd use redirects to set the base url, which doesn't really work in our current system).

[[2](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2497710055)] - use the response url for the base (I think, it's not clear when it comes to pages).

[[3](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2497418932)] - use the request url (but mistakingly assumes this is normal browser behaviour).

[[4](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2496751161)] - allow setting of base [via header](http://tools.ietf.org/html/rfc2068#section-14.11).

[[5](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2494770286)] - use the response url

[[6](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2496192942)] [[7](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2496404752)] [[10](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2496426381)] - response url for CSS, request url for pages.

[[8](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2493205529)] [[9](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2493131602)] [[11](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2492078834)] [[12](https://jakearchibald.com/2016/service-workers-and-base-uris/#comment-2491980695)] - use the request url, happy to break `event.respondWith(fetch(event.request))`



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

Received on Monday, 15 February 2016 10:56:34 UTC