[200 OK]: A Port80 Software Blog

We're all 200 OK: Web, HTTP and IIS Insights
posts - 199, comments - 719, trackbacks - 95

1 Byte or 1 Round-trip?

When it comes to simple things that people ought to be doing, there is the famous trailing slash problem in URLs.  Now, I don't expect people to start typing in http://www.port80software.com/ anytime soon, but I can say that Web developers really need to be doing their HTML properly...
 
Instead of this:
 
 
What about?:
 
 
That extra slash is going to save you a round trip because the Web server has to return a 301 redirect response and send the browser to /surveys/ when the non-full qualified URL is sent.  Now, if you are linking directly to index.html files, you don't have to worry --  but, then again, you have nice ugly URLs.  So, do your URL/URIs and markup right and have cleaner URLs and less round-trips which will make for a faster site -- and it will only cost you a single byte each time!
 
Oh, and the example should hint to you that it is survey time again at Port80 Software, and we have some new results for you... some of which might really surprise you.

Stay tuned. Same batty channel, same Windows-based global time.

Cheers,
The Port

posted on Monday, April 25, 2005 5:58 PM

Feedback

# re: 1 Byte or 1 Round-trip?

Thanks for posting little tips like this... I didn't know that would cause wasted bandwidth and time.. I don't know if I'm doing this anywhere, but next time I do a review of my links, I'll try to remember this and take a look.
4/29/2005 8:52 AM | Paul

# Port80: Http Software Blog

6/17/2005 3:31 AM | Di .NET e di altre amenita'

# 1 Byte more and 1 Round Trip less...

6/17/2005 5:16 AM | STEFANO DEMILIANI WeBlog

Post Comment

Title:  
Name:  
Url:  
Comment:  
Verify:
(Enter the word as it appears in the box above.)