无法在IE中打开xls文件 [英] Cannot open xls file in IE

查看:130
本文介绍了无法在IE中打开xls文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有JSF Web应用程序生成XLS文件并为用户提供指向该文件的链接。

如果通过HTTP访问此文件,一切正常。

但是IE(8)不能通过HTTPS打开/保存此xls文件。

有以下错误消息:

We have JSF web application that generates XLS file and gives user link to thes file.
All works fine if access this file via HTTP.
But IE(8) cannot open/save this xls file via HTTPS.
There is following error message:

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有什么问题?

I can open the same document via HTTPS in Firefox and in Chrome.
What can be the problem with 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://support.microsoft.com/ kb / 316431 ,您应该删除您使用的任何HTTP标头:

According to http://support.microsoft.com/kb/316431 , you should remove any of these HTTP headers you use:

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

这篇关于无法在IE中打开xls文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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