无法在 IE 8 中显示来自 HTTPS 的 PDF(在 64 位 Vista 上) [英] Can't display PDF from HTTPS in IE 8 (on 64-bit Vista)

查看:25
本文介绍了无法在 IE 8 中显示来自 HTTPS 的 PDF(在 64 位 Vista 上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自己开发的 HTTPS 服务器,它提供简单的文件(它嵌入在我的应用程序中).效果很好——一直在使用它.

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.

最近添加了 SSL 支持 -- Chrome、FireFox 和 IE 都喜欢它,加载页面也很好.

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

我发现的问题是当我尝试通过 HTTPS 连接加载 PDF 文件时.出于某种原因,PDF 永远不会在 IE 8(64 位 Vista 上的 64 位)中显示.它在 Chrome 中运行良好.当使用普通 HTTP 时,它在 IE 8 中运行良好 -- 只有在使用 HTTPS 时才会失败.

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.

注意:当提到 IE 8 时,它是 64 位 Vista 上的 32 位 IE 8,尽管 64 位 IE 8 具有相同的行为.

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.

这让我觉得这是某种 IE 8/HTTPS/PDF/64 位操作系统问题,但我不确定.

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

IE 8 的DebugBar 显示请求和响应完全按预期进行——完全没有错误.IE 8 不显示任何错误或任何内容——纯白屏幕(或在我尝试加载 PDF 之前显示的页面).清除缓存/cookies/etc.

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.

IE/PDF/HTTPS 是否存在任何已知问题?

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

推荐答案

我想我会回来给出最终答案.

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

感谢所有建议不要将加密的页面保存到磁盘"的人.

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

我遵循了 EricLaw 的建议并设置了:

I followed EricLaw's advice and set:

Cache-Control: private 

我还发现我删除了 Pragma: no-cache.

现在就像一个魅力:)

这篇关于无法在 IE 8 中显示来自 HTTPS 的 PDF(在 64 位 Vista 上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆