Hi,
Summary: Please tell me what headers Tomcat sets when it serves out a
plain file, and how I can control those headers.
Long version:
I'm using Tomcat 5.0.28 for a small webapp. It sits behind Apache,
which does SSL and forwards requests to Tomcat via mod_jk.
Anyhow, in the documentation area for my webapp users I tossed a few
HTML files and power-point files, and added links on JSP pages right to
those files. Clicking on the links to the HTML works fine, the tomcat
server pushes them across wonderfully. The problems arise when an IE
user clicks on a link to a powerpoint file. (It works fine in Firefox.)
I first had to extend web.xml for the appropriate mime-type. This is
documented partly in Tomcat bugzilla bug # 27617 (and I'm trying to get
that reopened). That change got me one step farther, but there are
still problems.
It appears that IE 6 is very sensitive to Cache-Control headers. Here
are some links that get into the problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
http://forum.java.sun.com/thread.jspa?threadID=233446&start=0&tstart=0
http://www.alexking.org/blog/2004/11/03/workaround-for-iessl-problem
The workarounds suggested by the sites above focus on removing or
altering the Pragma and Cache-Control headers. I'd like to do that, but
cannot find anything about doing that on a default basis. Sure, I can
set/remove headers on a JSP response object, but in the case of a simple
file, I'm not coding a JSP page nor manipulating any response object.
Finally my questions: I believe that Tomcat sets headers when it shovels
out a file. Is that right? If so, how can I control what headers are set?
I suspect the workaround may be do put a little JSP page in place that
adjusts the headers and somehow dumps out the content of the file, but
ugh, I'm don't like the sound of all that complexity.
Please reply (cc me directly if you don't mind), thanks in advance!
chris...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]