[Zope] Caching ImageFiles

Dieter Maurer dieter at handshake.de
Fri Sep 9 13:33:31 EDT 2005


Peter Bengtsson wrote at 2005-9-8 17:23 +0100:
> ...
>What is the difference between 'Cache-Control' and 'Expires'?

Cache control is the modern (HTTP 1.1) way, "Expires" the old (HTTP 1.0)
one.

>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.

-- 
Dieter


More information about the Zope mailing list