Hello, I have JBoss 4.0.2/Tomcat 5.5, using JasperReport 0.6.1
I have a servlet that returns pdf/xls dynamically, which works for
me under JBoss 3.2.3/Tomcat 4.1:
response.setContentType("application/pdf"); response.addHeader("Content-Disposition", "attachment; filename=returnFile.pdf");
<Connector port="443" address="${jboss.bind.address}" maxThreads="100" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" scheme="https" secure="true" clientAuth="false" keystoreFile="${jboss.server.home.dir}/conf/my.keystore" keystorePass="passwd" sslProtocol = "SSL" />
I was able to fix this with
response.setHeader("Pragma", "public"); response.setHeader("Cache-Control", "max-age=0");