9 Sep
2005
9 Sep
'05
5:33 p.m.
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