J
JerryJ
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"/>
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"/>