gpt4 book ai didi

internet-explorer-8 - IE8 :Internet Explorer was not able to open this Internet site. 请求的站点不可用或找不到

转载 作者:行者123 更新时间:2023-12-04 07:24:27 26 4
gpt4 key购买 nike

这应该是IE8下载问题的老问题了。我使用 PHP 来设置响应头,如:

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 近距离捕获。

当我尝试在 IE8(不是 SSL)中下载带有上述标题的文件时,消息框:

“Internet Explorer 无法打开此 Internet 站点。请求的站点不可用或找不到。”弹出并停止下载。

我在网上搜索并尝试了很多解决方案,但似乎没有一个有效。这个问题还有其他解决方案吗?

PS:我试过:删除响应 header /重置 header 中的内容类型/将站点添加到受信任的站点/将“不将加密的页面保存到磁盘”设置为true。

谢谢。

最佳答案

除了 Le-roy 的回答:

我设置

Cache-Control: private, max-age=1

这为我解决了这个问题。

从 Le-roy 的链接中,如果设置了以下任何一项:
Cache-Control header with the tokens no-cache, no-store
Vary header that specifies almost anything
Pragma header that specifies exactly no-cache

IE 下载将失败。

关于internet-explorer-8 - IE8 :Internet Explorer was not able to open this Internet site. 请求的站点不可用或找不到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16028422/

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