- From: Valentin Gosu <notifications@github.com>
- Date: Thu, 20 Mar 2025 02:35:29 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/issues/274/2739741836@github.com>
valenting left a comment (whatwg/fetch#274) Hi folks, We recently changed Firefox to [Remove image mime types from document accept header](https://bugzilla.mozilla.org/show_bug.cgi?id=1917177) in order to match the fetch spec. After doing so, we got some push back: - Sites using the document Accept header to decide which image formats to include in the document could no longer do so. - Navigating to an image URL can't negotiate content type, because image formats are no longer present in the document accept header. [see bug 1950012](https://bugzilla.mozilla.org/show_bug.cgi?id=1950012) I agree with @annevk that the document accept header shouldn't be used to negotiate image content types - since there's no guarantee that the same content-types will be present in the image request's Accept header. I think the second issue is trickier. Since the browser doesn't know whether a document load is to an image or a HTML file ahead of time, it will always send the same document accept header. In order to enable content type negotiation this would suggest that image mime types **should** be part of the document accept header. But this might be an avenue for future bloat, because you can make the same argument for audio, video, and other types of content. Should we include all of them in the document accept header? 🤷 Thoughts? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/274#issuecomment-2739741836 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/274/2739741836@github.com>
Received on Thursday, 20 March 2025 09:35:33 UTC