inappropriate Accept request header field-values

RESOLVED DUPLICATE of bug 82526

Status

()

Core
Networking: HTTP
RESOLVED DUPLICATE of bug 82526
16 years ago
16 years ago

People

(Reporter: mnot, Assigned: Darin Fisher)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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.
(Reporter)

Comment 1

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.