|
Helping ordinary people create extraordinary websites! |
Caching TutorialBy Mark Nottingham2007-12-22
How Web Caches Work All caches have a set of rules that they use to determine when to serve a representation from the cache, if it’s available. Some of these rules are set in the protocols (HTTP 1.0 and 1.1), and some are set by the administrator of the cache (either the user of the browser cache, or the proxy administrator). Generally speaking, these are the most common rules that are followed (don’t worry if you don’t understand the details, it will be explained below):
Together, freshness and validation are the most important ways that a cache works with content. A fresh representation will be available instantly from the cache, while a validated representation will avoid sending the entire representation over again if it hasn’t changed. Tutorial Pages: » What’s a Web Cache? Why do people use them? » Kinds of Web Caches » Aren’t Web Caches bad for me? Why should I help them? » How Web Caches Work » How (and how not) to Control Caches » Tips for Building a Cache-Aware Site » Writing Cache-Aware Scripts » Frequently Asked Questions » Implementation Notes — Web Servers » Implementation Notes — Server-Side Scripting » References and Further Information |
|