gpt4 book ai didi

internet-explorer - 无法在IE中打开xls文件

转载 作者:行者123 更新时间:2023-12-04 05:15:14 24 4
gpt4 key购买 nike

我们有JSF Web应用程序,该应用程序生成XLS文件并为用户提供指向thes文件的链接。
如果通过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可能有什么问题?

header :
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 header :

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

关于internet-explorer - 无法在IE中打开xls文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3070820/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com