IE8:Internet Explorer无法打开此Internet站点。请求的网站不可用或无法找到 [英] IE8 :Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found
问题描述
这应该是关于IE8下载问题的老问题。我使用PHP来设置响应头像:
This should be a old problem about IE8 download problem. I used PHP to set the response header like:
header("Pragma: public");
header("Expires: 0");
header("Content-type: application/octet-stream");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Length: ".strlen($content));
header("Content-Disposition: attachment; filename='$filename'");
并且Fiddler接近连接。
and the Connection is close capture by Fiddler.
当我尝试在IE8(不在SSL中)下载带有上述标题的文件时,消息框:
When I try to download the file with above header in IE8 (not in SSL), the message box :
Internet Explorer无法打开此Internet网站。请求的网站不可用或无法找到。弹出并下载停止。
"Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found." pop up and download is stopped.
我在网上搜索并尝试了很多解决方案,但似乎没有一个有效。这个问题还有其他解决办法吗?
I searched on net and try lots of solutions but seems none of them works. Would there be any other solution for this problem?
PS:我试过:在标题中删除响应标题/重置contentType /将网站添加到可信站点/集Do不将加密的页面保存到磁盘为真。
PS: I have tried: Delete response header/reset contentType in header/ Add the site into trusted site/ set "Do not save encrypted pages to disk" as true.
谢谢。
推荐答案
除了Le-roy的回答:
In addition to Le-roy's answer:
我设置
Cache-Control: private, max-age=1
这为我解决了这个问题。
and that fixed the issue for me.
从Le-roy的链接中,如果设置了以下任何一个:
From Le-roy's link, if any of these are set:
Cache-Control header with the tokens no-cache, no-store
Vary header that specifies almost anything
Pragma header that specifies exactly no-cache
IE下载失败。
这篇关于IE8:Internet Explorer无法打开此Internet站点。请求的网站不可用或无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!