Chapter 6. Configuring Servers to Work with Caches

only for RuBoard - do not distribute or recompile

Chapter 6. Configuring Servers to Work with Caches

This chapter is intended as a guide for web server administrators. I offer some techniques and advice on how to make your server friendly to web caches.

HTTP ”Version 1.1 in particular ”provides a number of headers for the exchange of information between origin servers and caches. For one reason or another, servers often fail to include these headers in their responses. This is rather unfortunate, because it can lead to undesirable or even incorrect behavior. The absence of these headers gives caches a lot of freedom to determine whether and for how long a given response may be cached. In particular, we are interested in the Date , Last-modified , Expires , Cache-control , and Content-length headers. You have already been introduced to these HTTP headers in Chapter 2, but we will explore them in greater detail here.

As a server administrator, you may be forced to choose between control on one hand and performance on the other. Uncachable objects give you more control and accurate access counts. Cachable responses take away some of your control but give better performance to your viewers . I will argue that your servers should be as cache-friendly as possible. This means carefully identifying which pages can be cached and which cannot. Cachable pages should include expiration times in keeping with their update frequency.

You will also find information here on how to configure your server to be cache-unfriendly . Essentially, this means telling the server to generate uncachable responses. As a proponent of web caching, I personally don't like to find cache-unfriendly servers. Of course, the decision is yours, not mine. I hope that, in reading this chapter, you come to believe that your viewers and customers will be better served by a cache-friendly server.

Much of this chapter deals with the HTTP reply headers that affect cachability . Although it is important to understand these aspects of the protocol, you also need to know how to make your server send the headers. If you are lucky enough to be using the Apache server, I have some specific examples you can follow. For other HTTP servers, consult your user 's manual.

only for RuBoard - do not distribute or recompile


Web Caching
Web Caching
ISBN: 156592536X
EAN: N/A
Year: 2001
Pages: 160

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net