Ainsi parlait David Walser : > Guillaume Rousse wrote: > > Ainsi parlait Per �yvind Karlsen : > >> --=-=-= > >> > >> * Fri Jul 04 2003 Per �yvind Karlsen <[EMAIL PROTECTED]> 1.2.9-2mdk > >> > >> - put / at the end of the url after strong wishes from David Walser:) > > > > I've never understood why so many people included a final / when citing > > an URL. Could you explain why ? > > As others have explained, the web server has to do more work when you leave > out the /, because it has to do a redirect. > > Multiplied by enough hits, the amount of extra work could be significant. > In the earlier days of the 'net, for a while www.yahoo.com refused to do > the redirect if you didn't put the /, instead offering an explanation, to > condition people to put the /. Also mentioned here, it just looks better. > Anyway it saves the server work, and it actually decreases the load time > (yes, the extra work for the server is often noticeable). > > So now that this has been explained on the list, can we please make sure to > use the / in the future when a URL is just a domain? Thanks. Well, i understand for the directory/file disambiguation, but when requesting just the domain, it is a non-sense, as there is no ambiguity at all.
And anyway, the server has still to do a redirect to the precise default page. If you really want to avoid this, you have to use an explicit URL as http://my.domain.com/index.html, but then you're lost the day the webmaster switch to index.php instead. -- Any cool program always requires more memory than you have. -- Murphy's Computer Laws n�2
