tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET?
Date Fri, 20 Jan 2012 14:13:29 GMT
On Fri, Jan 20, 2012 at 15:05,  <markt@apache.org> wrote:
> Violeta Georgieva <violetagg@apache.org> wrote:
>
[...]
>>My question is why the expires header is set with this value? Doesn't
>>this
>>prevent caching?
>
> Yes. That is the point.
>

But there is no need for an expires header if you don't want caching.
It is enough to "Cache-control: no-cache" (or "no-store", though the
latter wreaks havoc on IE and downloads) or, if you are _still_ using
HTTP/1.0, "Pragma: no-cache". The "Expires" is not needed at all.

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message