You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michele Milani <mi...@cefriel.it> on 2001/12/10 12:06:15 UTC

Apache + mod_jk (ajp13) + Tomcat: no "Expires" header in the resp onse

Dear guys,

I searched the archive and the Usenet without success.

I'm using a box with:

 - Linux Red Hat 7.2
 - Apache 1.3.20
 - mod_jk (ajp13)
 - Tomcat 3.3

I developed a web application that let you browse through some static HTML
pages and let you update the content of these HTML page, inserting some data
in a form.

The update of the static pages is done by a servlet that rewrite the HTML
file. The problem is that I can't get the last updated HTML page in my
browser.

I thought it was a problem realted to caching, so I forced Apache to set the
"Expires" header writing in the httpd.conf:

ExpiresActive On
ExpiresByType text/html "access"

but this solution didn't help.

I turned on a protocol analyzer (Etheral) to try and understand what the
problem was and I realized that Apache does not set the "Expires" header
when the HTML page comes from Tomcat.

I think my application is not so strange: I want to save the new data
inserted by the user so that the next time she requests the page she gets
the last version of it.

I wrote another very simple application to explain my problem better: you
can find it attached, simply decompress it under $TOMCAT_HOME/webapps.

Did anyone else experiment such problems?

Cheers,
Michele