Internet explorer 无法在IE中打开xls文件

Internet explorer 无法在IE中打开xls文件,internet-explorer,jsf,internet-explorer-8,https,Internet Explorer,Jsf,Internet Explorer 8,Https,我们有一个JSF web应用程序,它生成XLS文件并为用户提供指向该文件的链接。 如果通过HTTP访问此文件,所有操作都正常。 但是IE(8)无法通过HTTPS打开/保存此xls文件。 出现以下错误消息: Internet Explorer cannot download ...466088C5C313F92808BDB0AFF3447 from testhost. Internet Explorer was not able to open this Internet site. The

我们有一个JSF web应用程序,它生成XLS文件并为用户提供指向该文件的链接。
如果通过HTTP访问此文件,所有操作都正常。
但是IE(8)无法通过HTTPS打开/保存此xls文件。
出现以下错误消息:

Internet Explorer cannot download ...466088C5C313F92808BDB0AFF3447 from testhost.

Internet Explorer was not able to open this Internet site.  The requested site is either unavailable or cannot be found.  Please try again later.
我可以在Firefox和Chrome中通过HTTPS打开相同的文档。
IE有什么问题

标题:

HTTP/1.1 200 OK
Date: Fri, 18 Jun 2010 14:45:42 GMT
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
X-UA-Compatible: IE=EmulateIE7
Last-Modified: Fri, 18 Jun 2010 14:45:11 GMT
Cache-control: max-age=0, no-store, no-cache
Pragma: no-cache
Expires: 0
Content-Type: application/vnd.ms-excel
Content-Length: 6656
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive

您是否将缓存控制设置为无缓存?我遇到了类似的问题。有关详细信息,请参阅。

根据,您应该删除您使用的任何HTTP头:

Pragma: no-cache
Cache-control: no-cache,max-age=0,must-revalidate

最可能的原因是http响应头,我们必须专门为ssl下的xls文件配置它

Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Fri, 18 Jun 2010 16:22:07 GMT
Cache-Control: cache, must-revalidate
Pragma: public
用于缓存控制 及

内容类型:应用程序/vnd.ms-excel
内容处置:附件;filename=“ExcelDownload.xls”
内容传输编码:二进制
内容长度:
内容


键项为Pragma:public

缓存控制:max age=0,无存储,无缓存Pragma:no-cache@VladimirBezugliy:删除这些。Cache-control:max age=0,无存储,无缓存Pragma:no Cache删除无缓存,看看会发生什么
Content-Type: application/vnd.ms-excel
Content-Disposition: attachment; filename="ExcelDownload.xls"
Content-Transfer-Encoding: binary
Content-Length: <fileSize>