Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Re: Content-Type (was Safari - RSS)
Re: Content-Type (was Safari - RSS)
On 22/05/2006 20:51, Alan J. Flavell wrote:
Yes, it will always be in last place as far as /matching/ precedence is
concerned, but that is separate from the issue of quality. Here, the
precedence determines with which quality value a given representation
will be associated.
Consider, for a moment, the following (arguably broken) Accept header list:
application/xhtml+xml, text/html; q=0.9, */*
If one were to try and negotiate between text/html,
application/xhtml+xml, and text/plain, the matching order would mean
that text/html would receive a quality value of 0.9 as the second type
in the list is more specific (even though the latter media range has a
higher quality). Therefore, for our three types, we have:
Media Type Quality
It highly unlikely that this would be the intended result, and that the
user agent would really rather receive HTML or XHTML than plain text.
Ergo, the media range should have a lower 'q' value than the other two.
Prefix subject with [News] before replying by e-mail.