Here are some ways that HTML authors can help improve the download time for their files.
When composing HTML, try to keep pathnames short, both in number of directories in the path and in the length of each directory name.
You can scale static content easily by partitioning the content across multiple servers and using HTML links to the different servers. To start out partitioning, consider using one server for images, another for HTML, another for applets, etc. Also keep in mind that your HTML can easily refer to other web sites for embedded content, which entirely removes the load from your servers but creates a dependency on the other servers and makes for thorny copyright issues. The Gamelan (http://www.gamelan.com) applet directory does not have applets itself, but simply links to the sites that do, with the authors’ knowledge. There has recently been some legal action against a site that was embedding news from other web sites in frames and selling its own advertising in a top frame.
Conversely, if you need to have a link on your page to a site known to be very slow, consider asking the site’s administrator for permission to copy the site to your web server.
Make your links explicitly refer to
index.html files, or end directory references
with “/”. As discussed in Chapter 15, the trailing “/” in a URL saves the server (and network) the additional overhead of a redirection. Also, explicitly referring to ...