Epithemeus wrote:
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
Thanks, Ognjen. It works like a charm now!
As you said, with the new parameter (current time, in the case that I used)
it forces the client to reload the xml file. And this updates the graph as
well.
Regards,
Epithemeus
Ognjen Blagojevic-3 wrote:
Epithemeus wrote:
What is happening in
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
Out of the box - no. But you can write a filter to add the response to
all requests.
doFilter(...) {
response.setHeader(Cache-Control,no-cache); /* or no-store YMMV*/
response.setHeader(Pragma,no-cache);
response.setDateHeader (Expires, 0);
chain.doFilter();
}
-Tim
Epithemeus wrote:
Just in case someone wants more info about this, I just noticed (from a
Firebug presentation) that I can interactively turn off the
browser.cache.disk.enable and network.http.use-cache flags in
about:config which will probably make this a little easier to deal
with.
-Original Message-
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
Karr, David 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
|