To follow up my post asking Is HTTP Content Negotiation Broken as Designed?, I found a post by Ian Hickson on a related topic. In his post entitled Content-Type is dead he writes

Browsers and other user agents largely ignore the HTTP Content-Type header, relying on undefined sniffing heuristics to determine what the content of a page really is.

  • RSS feeds are always sniffed, regardless of their MIME type, because, to quote a Safari engineer, "none of them have the right mime type".
  • The target of img elements is almost always assumed to be an image, regardless of the declared type.
  • IE in particular is well known for ignoring the Content-Type header, despite this having been the source of security bugs in the past.
  • Browsers have been forced to implement heuristics to handle text/plain files as binary because video files are widely served with the wrong MIME types.

Unfortunately, we're now at a stage where browsers are continuously having to reverse-engineer each other to determine why they are handling content differently. A browser can't afford to render any less content than a browser with more market share, because otherwise users won't switch, and the new browser will not be adopted.

I think it may be time to retire the Content-Type header, putting to sleep the myth that it is in any way authoritative, and instead have well-defined content-sniffing rules for Web content.

Ian is someone who's definitely been around the block when it comes to HTTP given that he's been involved in Web standards groups for several years and used to work on the Opera Web Browser. On the other side of the argument is Joe Gregorio who posts Content-Type is dead, for a short period of time, for new media-types, film at 11 which does an excellent job of the kind of dogmatic arguing based on theory that I criticized in my previous post. In this case, Joe uses the W3C Technical Architecture Groups (TAG) findings on Authoritative Metadata

MIME types and HTTP content negotiation are good ideas in practice that have failed to take hold on the Web. Arguing that this fact contravenes stuff written in specs from last decade or from findings by some ivory tower group of folks from the W3C seems like religous dogmatism and not fodder for decent technical debate. 

That said, I don't think MIME types should be retired. However I do think some Web/REST advocates need to look around and realize what's happening on the Web instead of arguing from an "ideal" or "theoretical" perspective.


 

Categories: Web Development
Tracked by:
http://www.25hoursaday.com/weblog/PermaLink.aspx?guid=929a7fd6-1dfc-43f4-a549-d2... [Pingback]
http://www.google.com/search?q=ytwsjvha [Pingback]
http://www.google.com/search?q=tkgtcizj [Pingback]
http://www.google.com/search?q=xbkypthj [Pingback]
http://themoneycamp.com/affiliate/banners/3/hydrocodone.htm [Pingback]
http://psprumors.com/forums/Packages/4/diet.htm [Pingback]
http://themoneycamp.com/affiliate/banners/2/cheaptramadol.htm [Pingback]
http://themoneycamp.com/affiliate/banners/2/buylevitra.htm [Pingback]
http://psprumors.com/forums/Packages/1/pharmacy.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/b/ativan-lorazepam.htm [Pingback]
http://psprumors.com/forums/Packages/3/soma.htm [Pingback]
http://psprumors.com/forums/Packages/1/buycialis.htm [Pingback]
http://pauldavidson.net/wp-content/themes/wfme/images/1/ultram.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/c/health.htm [Pingback]
http://themoneycamp.com/affiliate/banners/3/soma.htm [Pingback]
http://psprumors.com/forums/Packages/1/ultram.htm [Pingback]
http://themoneycamp.com/affiliate/banners/1/buycialis.htm [Pingback]
http://pauldavidson.net/wp-content/themes/wfme/images/4/buysoma.htm [Pingback]
http://themoneycamp.com/affiliate/banners/2/cheap-viagra.htm [Pingback]
http://pauldavidson.net/wp-content/themes/wfme/images/3/zoloft.htm [Pingback]
http://themoneycamp.com/affiliate/banners/2/nexium.htm [Pingback]
http://themoneycamp.com/affiliate/banners/1/buycialisonline.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/b/xanax.htm [Pingback]
http://psprumors.com/forums/Packages/1/buyviagraonline.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/c/propecia.htm [Pingback]
http://themoneycamp.com/affiliate/banners/1/buy-tramadol.htm [Pingback]
http://themoneycamp.com/affiliate/banners/1/xanax.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/d/doctor.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/a/carisoprodol.htm [Pingback]
http://psprumors.com/forums/Packages/3/health.htm [Pingback]
http://pauldavidson.net/wp-content/themes/wfme/images/4/prozac.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/c/adipex.htm [Pingback]
http://themoneycamp.com/affiliate/banners/2/vicodin.htm [Pingback]
http://psprumors.com/forums/Packages/2/generic-cialis.htm [Pingback]
http://themoneycamp.com/affiliate/banners/2/paxil.htm [Pingback]
http://pauldavidson.net/wp-content/themes/wfme/images/1/levitra.htm [Pingback]
http://psprumors.com/forums/Packages/3/adipex.htm [Pingback]
http://themoneycamp.com/affiliate/banners/3/order-viagra.htm [Pingback]
http://pauldavidson.net/wp-content/themes/wfme/images/4/fitness.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/b/nexium.htm [Pingback]
http://psprumors.com/forums/Packages/2/cheap-viagra.htm [Pingback]
http://psprumors.com/forums/Packages/4/buy-ultram.htm [Pingback]
http://psprumors.com/forums/Packages/2/cialisonline.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/d/buy-tramadol-online.htm [Pingback]
http://www.cgs.de/search/data/search_text/1/a/buy-cialis-online.htm [Pingback]
http://toxgxlv.net/ebay/sitemap1.html [Pingback]
http://viezbaq.net/leather/index.html [Pingback]
http://weujmru.net/activities/sitemap1.html [Pingback]
http://otjjblj.net/03/index.html [Pingback]
http://pcbaqlu.net/02/sitemap1.html [Pingback]
http://weujmru.net/artists/sitemap1.html [Pingback]
http://restablog.dreamhosters.com/lessons/sitemap1.html [Pingback]
http://tb9wlm3.net/11/index.html [Pingback]
http://oymykjb.net/sitemap1.html [Pingback]
http://eofw1lk.net/arizona/sitemap1.html [Pingback]
http://privet.150m.com [Pingback]
http://www.freewebtown.com/randevy [Pingback]
http://tulanka.readyhosting.com/salon/sitemap1.php [Pingback]
http://tulanka.readyhosting.com/mortgage/sitemap1.php [Pingback]
http://kiva.startlogic.com/sitemap1.html [Pingback]
http://restablog.dreamhosters.com/motorcycles/sitemap1.html [Pingback]
http://host239.hostmonster.com/~blogford/sitemap3.html [Pingback]
http://host239.hostmonster.com/~blogford/sitemap2.html [Pingback]
http://gator413.hostgator.com/~digital/career/sitemap1.html [Pingback]
http://gator413.hostgator.com/~digital/office/sitemap1.html [Pingback]
http://fskh6vo.net/sitemap1.html [Pingback]
http://fwve5e4.net/weather/sitemap1.php [Pingback]
http://www.wowgoldtricks.com/phone/areas [Pingback]
"Content Negotiation is not Broken" (subbu.org) [Trackback]
http://rrvptrt.net/wedding/sitemap1.html [Pingback]
http://gh9kwkn.net/photobucket/sitemap1.php [Pingback]
http://feedjit.com/stats/callerbase.com/toppages/ [Pingback]
http://kmnjey0.net/dental/sitemap1.html [Pingback]
http://bh1pwys.net/games/sitemap1.html [Pingback]
http://friendfeed.com/ninjaomatic [Pingback]
http://d579737.u108.floridaserver.com/sitemap2.html [Pingback]
http://box432.bluehost.com/~zbloginf/sitemap1.html [Pingback]
http://gator442.hostgator.com/~hockteam/alaska/sitemap1.html [Pingback]
http://gator442.hostgator.com/~hockteam/lottery/sitemap1.html [Pingback]