The Artima Developer Community
Sponsored Link

Web Buzz Forum
Time to fix those broken pages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Simon Willison

Posts: 282
Nickname: simonw
Registered: Jun, 2003

Simon Willison is a web technology enthusiast studying for a Computer Science degree at Bath Uni, UK
Time to fix those broken pages Posted: Aug 4, 2005 3:22 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Simon Willison.
Original Post: Time to fix those broken pages
Feed Title: Simon Willison: Web Standards
Feed URL: http://feeds.simonwillison.net/swn-everything
Feed Description: Simon Willison's Web Standards cateory
Latest Web Buzz Posts
Latest Web Buzz Posts by Simon Willison
Latest Posts From Simon Willison: Web Standards

Advertisement

I have a whole bunch of gripes about Internet Explorer, but my personal favourite is the way it will render a document served with a text/plain Content-Type header if it thinks the file might contain HTML. The direct result of this is that people with misconfigured web servers who are serving their HTML with the wrong Content-Type frequently don't realise, so when users of better behaved browsers such as FireFox visit they get hit in the face with a page of raw source code.

The times they are a-changing. I just spotted this gem in MSDN's article How to Make Your Web Site Work with Windows XP Service Pack 2:

Q: Does your Web site contain files with file types that do not match their Content-Type and/or file extension?

A: You should correct all of these mismatches. Both the Content-Type and the file extension must match the type of the file for a download prompt to appear. Be sure this is true for your Web pages as well. If the Content-Type is plain/text, then they will not render as HTML.

Of course, the rate at which people upgrade to service pack 2 is likely to be pretty poor but at least new machines will have it installed by default. Hopefully sites serving the wrong Content-Type for their HTML documents will be forced to clean up pretty quickly.

The other issue mentioned in that quotation - forcing the file extension to match the Content-Type - is a little odd from a non-Windows OS point of view but I'm sure there's a rational reason behind it. At the end of the day, anything that improves Windows security is a good thing for the health of both the Internet and society in general.

Read: Time to fix those broken pages

Topic: tony morgan: 10 Easy Ways to Keep Me from Visiting Your Church Because I Visited Your Website Previous Topic   Next Topic Topic: LugRadio Live 2005 is over

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use