- From: Boris Zbarsky <notifications@github.com>
- Date: Mon, 23 Nov 2015 08:03:12 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Monday, 23 November 2015 16:03:48 UTC
> For stylesheets the response URL becomes the URL (as if there was a redirect) Becomes the URL in what sense? Let's ignore service workers for now and just consider basic HTTP redirects. Consider a load for a stylesheet that starts with `<link rel="stylesheet" href="A">` where `A` then redirects to `B`. The resulting `StyleSheet` object has `A` as its `.href` but uses `B` as its base URL. See http://web.mit.edu/bzbarsky/www/testcases/css-loading/test-redirect-1.html for a simple testcase. The first part of that is kinda specced at https://drafts.csswg.org/cssom/#concept-css-style-sheet-location and I'm not sure whether the second part is specced anywhere obvious. But the point is that stylesheets have two URLs associated with them: one that they expose as their `.href` and another that they use as the base URL. I assume in the service worker case `response.url` affects the latter but not the former, right? --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/787#issuecomment-158980001
Received on Monday, 23 November 2015 16:03:48 UTC