Re: [ServiceWorker] When responses from origin A are used in response to a request for origin B, treat as a redirect (#560)

Let me see if I understand. This means if you have ```<img src="http://www.example.com/blah">``` and your controlling SW is ```onfetch = function(e) { e.respondWith('http://www.wikipedia.org/image.png'); }```, from the point of view of the request for the ```img```, the request URL is ```http://www.example.com/blah```, the response URL is ```http://www.example.com/blah```, and the original response URL is ```http://www.wikipedia.org/image.png```. Does the response URL ever differ from the request URL, when the caller gets the response?

The Fetch spec mentions a "final url" flag, but it's never set by the current Fetch spec or SW spec, what's the idea for that?

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

Received on Thursday, 9 April 2015 06:16:40 UTC