HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › IE8 PDF wont download › Re: Re: IE8 PDF wont download
@PD4ML wrote:
It looks like the problem is caused by a caching of documents, downloaded by HTTPS. Please correct if I am wrong.
It was a known issue of older PD4ML JSP taglib versions, until we found a safe HTTP header directives set.Currently PD4ML taglib sets only the following HTTP cache control directives:
[language=java:1mh17s0m]((HttpServletResponse) sr).setHeader(“Pragma”, “cache”);
((HttpServletResponse) sr).setHeader(“Expires”, “0”);
((HttpServletResponse) sr).setHeader(“Cache-control”, “private”);[/language:1mh17s0m]In your case there are some other cache controls (including conflicting with the above) – probably the hosting application is configured to add them to each reply. Try to switch it off for PDF generating JSPs.
PD4ML, tankyou ! Works like a charm =)
I also have add cache-control: no-store, no-cache. See lines bellow:
response.setHeader(“Pragma”, “cache”);
response.setHeader(“Expires”, “0”);
response.setHeader(“Cache-control”, “private”);
response.setHeader(“Cache-Control”, “no-store, no-cache, must-revalidate”);
Again, tankyou!