Dieter Maurer was as kind as he always is one the Zope mailing list and explained to me the difference between using the Cache-Control
and the Expires
header for inducing browsers to cache your web elements. He explains:
Cache control is the modern (HTTP 1.1) way, "Expires" the old (HTTP 1.0)
one.
My problem is that I've know about each but never bothered to find out why there are two ways of doing the same thing. In most of my projects I've used the oldschool method of setting RFC822 formatted future dates on the Expires
header, but from now on I'll use both. Dieter continues on my question "What is best to use and for what?":
Use them both:
HTTP 1.1 clients will honour "Cache-Control" (which is easier to
use and much more flexible).
HTTP 1.0 clients will ignore "Cache-Control" but honour "Expires".
With "Expires" you get thus at least a bit control for these
old clients.
Truncated! Read the rest by clicking the link below.