Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't display PDF from HTTPS in IE 8 (on 64-bit Vista)

I have a home-grown HTTPS server that serves up simple files (it's embedded within my app). It works great -- been using it forever.

Recently added SSL support -- Chrome, FireFox and IE all like it and load pages just fine.

The problem I find is when I try to load a PDF file over the HTTPS connection. For some reason, the PDF never displays in IE 8 (64-bit on 64-bit Vista). It works fine in Chrome. And it works fine in IE 8 when using plain HTTP -- only fails when using HTTPS.

NOTE: When IE 8 is mentioned, it's 32-bit IE 8 on 64-bit Vista, although the 64-bit IE 8 has the same behavior.

That makes me think it's some sort of IE 8/HTTPS/PDF/64-bit OS issue, but I'm not sure.

DebugBar for IE 8 shows the request and response went exactly as expected -- no errors at all. IE 8 doesn't show any errors or anything -- pure white screen (or the page that was displayed before I tried to load the PDF). Cleared cache/cookies/etc.

Are there any known issues with IE/PDF/HTTPS?

like image 679
DougN Avatar asked Jun 24 '09 14:06

DougN


People also ask

Why can't I open PDF files from Internet Explorer?

Enable the Adobe PDF browser add-on (Internet Explorer 8 and later) Make sure that the Adobe PDF browser add-on is enabled. Open Internet Explorer and choose Tools > Manage Add-ons. Under Add-on Types, select Toolbars and Extensions.

Why does it say Cannot display PDF?

To fix a PDF file not opening in Adobe reader, you will need to download the latest version of Adobe Reader. After which you will disable the protected mode that comes with it by default. Once this is changed, the issue of the PDF file not opening in Adobe reader will be resolved.

How do I enable my browser to view PDF files?

Click "Enable" to set Chrome PDF Viewer as the default PDF viewer on Google Chrome. Step 3: Right click on your document. Navigate to the "Open With" option and choose "Chrome PDF Viewer" from the drop-down menu. You can also drag a PDF document directly into the browser, and it will open.


1 Answers

Thought I'd come back and give the final answer.

Thank you to everyone that suggested "Do not save encrypted pages to disk".

I followed EricLaw's advice and set:

Cache-Control: private  

I also found that I had Pragma: no-cache, which I removed.

Works like a charm now :)

like image 52
DougN Avatar answered Sep 21 '22 18:09

DougN