I asked this question many a times in this list.
Finally found a solution in Apache Mailing list archive.

I wanted to set the expires tag for javascript files, css files and gifs.

I still do not know how to achieve this using tomcat alone.

But Yes If we are using apache along with tomcat, we can use mod_cache to achieve this.

Can anyone comment whether it is possible in tomcat alone or not.

Thanks in advance
Regards
Puneet

Note: Forwarded message attached

-- Orignal Message --

From: "Puneet Agarwal" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Fw: Re: preventing all caching

--- Begin Message ---
 
 
Note: forwarded message attached.

----- Original Message -----
From: "Puneet Agarwal" <[EMAIL PROTECTED]>
Date: Tue, 17 Dec 2002 17:03:41 -0500
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Re: preventing all caching


-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife

--- Begin Message ---
I have a similar problem, I guess this can be done by
setting the header against particular MIME types in the configuration
file of the webserver.
But Do not know how to set the particular header tag against
some MIME type.<BR>I have asked this to many a people and in
this mailing list as well but to no avail.
I guess if we search in the mailing archive it may help. I
have searched for some initial mails but did not find anything
worthwhile.
If you find something please let me know as well.

Regards
Puneet

----- Original Message ----- 
From: "Hans Goeckel" 
Date: Tue, 17 Dec 2002 11:27:54 -0500 
To: "Tomcat Users List" 
Subject: preventing all caching 

> I'm trying to figure out how to prevent caching of any content on a client machine. 
> 
> Our servlets properly use the no-cache directive, but other content is still being 
>cached. 
> 
> Specifically, those pages we generate use Javascript to load a set of images from 
>the server. The HTTP headers in the response to those GETs don't contain the no-cache 
>directive. I would have thought that adding nocache as a directive to the default 
>settings in web.xml would take care of this, but it seems to have no effect. 
> 
> Is there any way to force a nocache directive into all content returned by the 
>server? 
> 
> Many thanks for any help. 
> 
Hans
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--- End Message ---
--- End Message ---
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to