Closed Bug 118696 Opened 23 years ago Closed 23 years ago

inappropriate Accept request header field-values

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 82526

People

(Reporter: mnot, Assigned: darin.moz)

Details

Mozilla generates a static Accept header

Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9,
image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css, */*;q=0.1

no matter what kind of request it is making. For requests generated from img
tags, it's inappropriate to send 'application/xhtml+xml', 'text/css' and the like. 

Suggest that:
- for img requests (and similar, e.g., css stylesheet fetching, javascript
inclusion, etc.), a context-specific Accept header be generated
- for generic requests (from the browser bar or those from a links), the default
Accept header be sent, *except* that image/* types be sent with a slightly lower
q value. Mozilla is a hypertext browser, after all, and if there are both html
and jpg representations of a resource, it should prefer the html, all other
things equal.
- when an a link contains a 'type' parameter, that media type should be added to
the Accept header with the highest q value.
Also, Mozilla shouldn't send */* at all. 

See: 
  http://www.w3.org/TR/cuap#cp-http-accept
*/* is only harmful if the supported possibilities have not been exhausted, IMO.Anyway, this seems to be more or less covered by bug 82526.

*** This bug has been marked as a duplicate of 82526 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.