On Sun, Mar 09, 2003 at 08:24:55PM +0100, Herr Christian Wolfgang Hujer wrote:
| I'd say, an example of an ideal Accept header for a browser like Konqueror or
| Opera (both can handle HTML, XML and XHTML) is:
| Accept:
| text/xml,application/xml,application/xhtml+xml,text/css,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg;q=0.2,*/*;q=0.1
| Which is, of course, just a terse example which should be extended to accept
| JavaScript and those types for that plugins were found, like Java, Flash or
| SVG.
|
| What do you think?
Hmmm... I'd say it depends on the request. For example, if the request is
for a URL typed into the address bar, then what you say above would be
appropriate.
However, if the request is for an image embedded in a web page, it should
send an accept header of something like:
Accept: image/png,image/jpeg,image/gif,image/*;q=0.9,*/*;q=0.1
If the request is for something where the browser is already expecting a
particular MIME type, for example a link:
<link rel="alternative" href="index.foobar" type="foo/bar"
title="This page in Foo Bar format">
or an object:
<object href="blah.foobar" type="foo/bar">
Alternative content.
</object>
Then the browser should send:
Accept: foo/bar,foo/*;q=0.9,*/*;q=0.1
--
Toby A Inkster BSc (Hons) ARCS | mailto:tobyink@goddamn.co.uk | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:tobyink@a-message.de
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://counting_crows/hard_candy_uk_edition/02_american_girls.ogg