Hi,
I am using Tomcat 5.5.17 with Sun JDK 5.0.7 on CentOS 4.3. I have a
servlet, namely BMPImageViewer, which converts a BMP image in database
into PNG format via JAI. The servlet is used in XSL-FO for PDF generation.
My problem was that the image did not change even the image in database
changed. I checked that the servlet BMPImageViewer worked correctly and
loaded the correct image every time. The servlet outputs the image with
header set to "no-cache" :-
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", -1);
How can I make Tomcat not to cache the image, and load a new one every
time? I hope someone could help me out and advise how to configure
Tomcat not to cache dynamic image.
Thanks a lot.
John Mok
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]