Hi,
I am using Tomcat 5.5.17 with Sun JDK 5.0 Update 7 on CentOS 4.3. I have
a servlet, namely BMPImageViewer, which retrieves a BMP image from
database with conversion into PNG format via JAI. The servlet is
referenced in XSL-FO for PDF generation.
My problem was that the image did not change even the image in database
updated. 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 to force Tomcat not to cache the dynamic 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]