You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Timpe <MT...@t-online.de> on 2002/06/18 21:51:36 UTC

Caching-Problem Tomcat 4.0.x (Tomcat 3.3.1 works)

Hi,

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?

Greetings

Michael





--------------------------------------------------------------------------------
Michael Timpe
Melchiorstr. 24
50670 Köln
eMail: michael@timpe-koeln.de