This post originated from an RSS feed registered with .NET Buzz
by Doug Thews.
Original Post: Remember Your Ending Slashes
Feed Title: IlluminatiLand
Feed URL: http://apps5.oingo.com/apps/domainpark/domainpark.cgi?client=netw8744&s=JETBRAINS.COM
Feed Description: A technology blog for people enlightened enough to think for themselves
It's still pretty surprising to see the number of hyperlinks to a virtual directory that don't have an ending slash ('/'). Remember, when adding the slash, you're telling the HTTP processor you're getting the default file in the folder. If you don't then a client request to the destination server will be made to see if the destination is a file or folder. So, you eliminate this first query request.
It might not seem like a lot, but if you've got a lot of users coming to your site, using the link, or the application has the link (all without the slash), you can see a substantial performance penalty.
So, remember ... get your slashes in there. It's just too easy not to do.