tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Epithemeus <>
Subject Re: Any way to make tomcat send the "disable caching" headers on all responses?
Date Mon, 17 Aug 2009 15:10:26 GMT

Hi all,

I've run into a similar problem with Tomcat 6.0 and am hoping to find some
information on why this might be happening.

I have an xml file which contains information to display a graph. I also
have an HTML file which creates an applet to view the graph.

The xml file is updated based on inputs from the user (specified in
StartPage.jsp). So, the user gives an input, the xml file is updated and the
corresponding graph should be displayed.

What is happening in practice is that: the xml file is indeed updated but
the graph being displayed is an older version (corresponding to the older
.xml file which has now been over-written). I gather that this means tomcat
is caching the xml files.

I have tried including "cachingAllowed" to false in context.xml. I have also
deleted the application_folder under $TOMCAT_HOME\work\Catalina\localhost\.
Neither of these options has helped in disabling caching.

I would really appreciate any help on how I could get around this!

dkarr wrote:
> When I'm debugging javavascript code, it's really annoying when Firefox
> caches the javascript file (even when I've modified it).  I'm familiar
> with the headers for disabling caching, but it's a little more annoying
> to emit those headers on javascript files.  Unless I'm missing
> something, is there an easy way to make Tomcat send the disable cache
> headers for all responses, perhaps for a single application?
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message