- From: Julian Reschke <julian.reschke@gmx.de>
- Date: Tue, 02 Jun 2009 10:31:00 +0200
Adam Barth wrote: > Sure. For the sake of discussion, let's say IE6 and IE7. Basically, > if the Content-Type header contains a value IE knows about, then IE > pretty much ignores the value and engages its sniffing algorithm. So, > for example, if a response has: > > Content-Type: text/html > Content-Type: image/gif > > and is really a GIF. IE will show the image correctly because it will > see the text/html type, ignore it, and then sniff GIF from the > content. By contrast, Firefox and Chrome will see the type image/gif > type and show the image correctly. This is quite likely to occur on > the web because it works in every browser. > > Now, consider the reverse: > > Content-Type: image/gif > Content-Type: text/html > > In this case, IE renders the image correctly, but Firefox and Chrome > don't show the image. This is less likely to occur on the web because > it doesn't work in Firefox (e.g., >20% of the market). Thanks! BR, Julian
Received on Tuesday, 2 June 2009 01:31:00 UTC