今天 承志 看到的,感觉比较有收获,分享一下:
When generating hyperlinks, always include a trailing slash if possible. For instance, navigating to http://msdn.microsoft.com/ie takes one more roundtrip than http://msdn.microsoft.com/ie/. When the browser navigates to the /ie url, the server merely sends down a 301 to the /ie/ url. Both links work, but the second version is faster.
也就是说,在地址栏中发送 URL:http://msdn.microsoft.com/ie ,服务器将会产生一个 301 转向至 http://msdn.microsoft.com/ie/。
所以直接发送 URL:http://msdn.microsoft.com/ie/ 速度将会更快,当然这种速度是感觉不到的,但优化应该“尽可能”。
Update 08-3.20:
今天乱游荡竟然看到了原话的出处,来自 IE 官方Blog 文章《Internet Explorer and Connection Limits》一文。

共有7 条评论
要“尽可能”
我对服务器方面的东西不太了解,不过我感觉apache在碰到 “http://msdn.microsoft.com/ie/” 这样的URL时,会使用mod_rewrite重写URL,因为不重写它就不知道相对路径,所以不管怎么样情况,应该都会有301发生,如果服务器碰到“http://msdn.microsoft.com/ie/”不需要发出301就能解析,那么它碰到“http://msdn.microsoft.com/ie”时应该也不会有必要发出301了。
我想原作者的意思是http://msdn.microsoft.com/ie会比http://msdn.microsoft.com/ie/多一次301转向
http://msdn.microsoft.com/ie/比http://msdn.microsoft.com/ie更利于搜索引擎优化,当访问http://msdn.microsoft.com/ie,做一个301转向http://msdn.microsoft.com/ie/,就可以尽量的避免pr流失,而使http://msdn.microsoft.com/ie/具有更高的pr值。
在地址栏里输入http://www.slleo.com,回车后,后面被自动加上一个/;在链接上,如果没有这个/,浏览器在打开时也会自动加上.
因此,加上这个符号比没加速度更快,这个是很早以前在看过的一篇文章里提到的,可以测试下.
可以转载你的文章吗?
这篇文章也谈到了这个问题。不知道对你是否有帮助。
http://www.cnblogs.com/JustinYoung/archive/2007/11/20/965070.html