Tomcat Newbie, need help with caching



I am new to Tomcat. I have a Tomcat web site that generates PDF
documents dynamically. I am having trouble because, once the PDF is
generated, Tomcat caches the output file and sends the same one to the
web client. I need to shut this off so the PDF can be regenerated from
new data on each request.

In the server.xml file under the <Host> element, I've added a <Context>
element to attempt to shut this off (see below). However, the output
still is cached unless I shut down then restart.

Your solution will be appreciated!

<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Context path="/MyWebFolder" docBase="BookBuild" debug="0"
reloadable="true" cachingAllowed="false" cacheMaxSize="0"/>

.



Relevant Pages

  • Re: Serving PDF from a servlet - blank screen in IE
    ... > as long as the HTTP request is handled by the Tomcat server itself. ... > I searched Google for any clues regarding JK2 and PDF, ... being sent between the server and browser. ...
    (comp.lang.java.programmer)
  • Re: Serving PDF from a servlet - blank screen in IE
    ... > as long as the HTTP request is handled by the Tomcat server itself. ... > I searched Google for any clues regarding JK2 and PDF, ... being sent between the server and browser. ...
    (comp.lang.java.help)
  • Re: PDFs sent through tomcat/apache
    ... in this configuration large PDF's will not stream correctly to the PDF ... I've downloaded PDF from sites implemented with JSP/Servlets and got 0 length files and "corrupt" PDF files. ... Can you send me a PDF that fails I'll try to reproduce it on my end. ... what version of Tomcat are you using? ...
    (comp.lang.java.programmer)
  • output PDF in IE KO with Apache
    ... my webapp output a pdf. ... With Tomcat 4.1.29 it's OK for IE6 and Mozilla. ... Tomcat 4.1.29 and Apache 2.0.49 it's OK for Mozilla but not for IE: ...
    (comp.lang.java.programmer)