tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Michael Timpe)
Subject Caching-Problem Tomcat 4.0.x (Tomcat 3.3.1 works)
Date Tue, 18 Jun 2002 19:51:36 GMT

I have the following problem:

I have a servlet that creates as a result a (plain) html file on the server and saves it on
the server. The browser than requests the html page to display it.

The html page created by the servlet is updated very fast (each second). To indicate this,
the html page contains a time stamp to track the correct update of the page.

It seems that Tomcat4.0.x does not recognize that the html file has been changed and delivers
the old version of the html page. Only if the browser is waiting about 5s until it requests
the new created html page, it works.

With Tomcat 3.3.1 the servlet can update the html file as often as needed. Tomcat 3.3.1 always
delivers the newest version.

(In the html file there are the needed meta tags to avoid caching the page on the client side
and to avoid caching in a proxy!)

So, my question is:

1) Does Tomcat 4.0.x have a problem that a static html page to be delivered has been updated
within the last second?

2) Does Tomcat 4.0.x have any internal caching mechanisms (to avoid loading the html file
from the disk for each request)? 

3) If so: Is there any possibility to configure this caching?



Michael Timpe
Melchiorstr. 24
50670 Köln

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message