zip直接链接下载不适用于IE7和IE8

时间:2011-07-15 10:48:06

标签: internet-explorer-7 zip download

Zip文件直接链接下载无法在IE7和IE8中运行示例:http://beta-ffconeworld.fairfactories.org/Uploads/documents/docfiles/122_test.zip

$ curl -I http://beta-ffconeworld.fairfactories.org/Uploads/documents/docfiles/122_test.zip
HTTP/1.1 200 OK
Date: Fri, 15 Jul 2011 10:58:46 GMT
Server: Apache/2.2.16 (Amazon)
Last-Modified: Fri, 15 Jul 2011 10:09:11 GMT
ETag: "7cc4-8565-4a818d74be4db"
Accept-Ranges: bytes
Content-Length: 34149
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: application/zip

2 个答案:

答案 0 :(得分:1)

IE7 Security settings

在我的机器上正常工作。

检查您的安全设置。在IE7中,这是工具 - >互联网选项 - >安全 - >自定义级别...在列表中可以禁用文件下载,或使其无需提示即可下载。

答案 1 :(得分:1)

我遇到了类似的问题,并通过在apache中为特定的文件扩展名或目录禁用gzip压缩来解决它。

在我的情况下,apache试图压缩已经压缩的文件,从而破坏它。我们添加了

SetEnvIfNoCase Request_URI \.(?:zip)$ no-gzip dont-vary

进入httpd / conf / extra / httpd-deflate.conf,一切都很顺利。