1 Byte more and 1 Round Trip less...

Andrea signals me this interesting blog about HTTP-related arguments, where an interesting tip appears:

When you've to develop a web page and place an URL (an HREF tag), instead of writing something like this:

<a HREF="/surveys">Go to My Survey</a>
 
it's better to write the URL with this form:
<a HREF=/surveys/>Go to My Survey</a>

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. This is a little thing that permits you to have a faster site response.

A great tip to remember...  

Print | posted on Friday, June 17, 2005 2:18 PM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)
 
Please add 2 and 7 and type the answer here: