I am facing an issue while streaming PDF file on a Java EE web application over HTTPS connection. I am using an IFRAME to display the PDF file. I display the pdf using an ajax call to the server.
I have noticed that PDF streaming got downloaded twice just on Internet Explorer
- I saw that by using Wireshark to measure the frame size, and saw it is the double of the requested PDF file size.
- Also used HttpWatch Basic, to see the PDF got downloaded twice.
Is there any known issue on Internet Explorer about that? What is the workaround?
For information I have this issue using Acrobat Reader 9 on Internet Explorer 8.
This is a well known fact, documented by Microsoft in a knowledge base article.
The article has a workaround. But I recommend against implementing it since it’s too Windows specific and since ActiveX is a thing of the past.
Do you have an problem with that behavior? Normally, it’s not a problem. If you generate the PDF on the fly and it’s expensive to produce it, cache it.