Re: HOWTO disable Tomcat from caching dynamic picture

2006-10-05 Thread Christopher Schultz
John, > 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. Do you use Cocoon or something similar to do the XSL-FO->PDF conversion? If so, do you have caching turne

RE: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread Roland Rabben
; Sent: 1. oktober 2006 16:16 > To: 'Tomcat Users List' > Subject: RE: HOWTO disable Tomcat from caching dynamic picture > > Hey John, > > Tomcat does not do any caching. Try adding these HTTP headers: > > response.addHeader("Pragma","no-cache&quo

RE: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread Paul Hamer
Hey John, Tomcat does not do any caching. Try adding these HTTP headers: response.addHeader("Pragma","no-cache"); // HTTP/1.0 response.addHeader("Cache-control","no-cache, no-store"); // HTTP/1.1 That's the official way. However, due to an IE4-IE6 bug, you might want to replace the second one by

Re: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread Martin Gainty
in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "david.delbecq" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, October 01, 2006 5:47 AM Su

Re: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread david.delbecq
Tomcat does not cache output of a servlet. By definition the output of a servlet is dynamic and as such has no reason to be cached. The image is probably cached somewhere else... John Mok a écrit : > Hi, > > I am using Tomcat 5.5.17 with Sun JDK 5.0 Update 7 on CentOS 4.3. I > have a servlet, namel