IE : 无法从 * 下载 *.无法打开此 Internet 站点.请求的站点不可用或找不到 [英] IE : Unable to download * from *. Unable to open this Internet site. The requested site is either unavailable or cannot be found

查看:185
本文介绍了IE : 无法从 * 下载 *.无法打开此 Internet 站点.请求的站点不可用或找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站和 IE 有问题.我有一个文件 Document.ashx,它根据查询字符串中传递的参数成为我数据库中的文档.

I have an issue with my website and IE. I have a file Document.ashx that becomes a document from my database depending on the parameter passed in the query string.

该文件在以下情况下有效:

The file works if:

  • 您正在访问我的网站并点击下载链接.
  • 您可以访问我网站上的任何内容并将 URL 粘贴到地址栏中并访问它.
  • 您之前已经访问过文档链接一次,即使它出错了.

在以下情况下无效:

  • 您尚未在当前 IE 浏览器中访问我的网站,并将链接粘贴到地址栏中.它显示以下错误:

Windows Internet Explorer

Windows Internet Explorer

无法从 MyHostName 下载 Document.ashx.

Unable to download Document.ashx from MyHostName.

无法打开此 Internet 站点.

Unable to open this Internet site.

请求的站点不可用或找不到.

The requested site is either unavailable or cannot be found.

请稍后再试.

有没有人知道是什么导致了这种情况.当然,它在 Firefox 中运行良好.

Does anyone have a clue what would cause this. Naturally it works fine in Firefox.

我的办公室里有几个人用 IE 尝试过,他们都遇到了同样的问题.他们都说它适用于 Firefox.

I've gotten several people in my office to try it with IE and they all get the same issue. They all say it works in Firefox.

推荐答案

就像 rymo 说的 set Cache-Control: private,如果你的响应头恰好有 Pragma :no-缓存,你还得把它改成Pragma: token .

Just like rymo said set Cache-Control: private, If your response header happen to have the Pragma :no-cache, you also have to change it to Pragma: token .

这篇关于IE : 无法从 * 下载 *.无法打开此 Internet 站点.请求的站点不可用或找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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