You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Milind Sawant <mi...@skandiabank.ch> on 2002/07/19 18:10:20 UTC

caching headers

Hi

I am using TOMCAT Version 3.2.3.

i want to disable caching  ( not stored on the users pc ) of the jsp page.

The following tags in the jsp dont work

<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="cache-control" content="no-store">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">

similarly i want that a gif file generated thru a servlet should not be
cached.

The following response headers set in the servlet dont work

response.setHeader("pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Expires","01 jan 1970");

both the gif and the jsp are still stored on the users pc.

Please let me know whether i am wrong somewhere or this is expected in
TOMCAT Version 3.2.3.

will it work in tomcat 4.x?

thanks for your support
Regards

Milind Sawant
Web Administrator (Apollo)
TCS

+0041 1 288 4675


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