Re: [fetch] Mechanism to indicate "destination context" (#64)

1. The reasoning does not consider the influence of service workers. E.g. you can prefetch something and end up with a synthetic response in the "prefetch cache". That matters.
2. You first suggest using type as MIME type but then the processing steps use simple strings such as "image", "xhtml", etc.
3. It seems simple strings would be more friendly than MIME types still. Making them diverge from context might be okay, though e.g. for "next page" I'm not sure why you'd want "text/html" over "hyperlink". Having the next page change in MIME type over time (e.g. from HTML to an image) should not really impact the desire to prefetch it, I think.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/64#issuecomment-115736878

Received on Friday, 26 June 2015 15:46:14 UTC