IE:无法从*下载*。无法打开此网站。请求的网站不可用或无法找到 [英] IE : Unable to download * from *. Unable to open this Internet site. The requested site is either unavailable or cannot be found
问题描述
- 您在我的网站上,点击下载链接。
- 您可以访问任何内容我的网站并将该网址粘贴到地址栏并进行访问。
- 即使发生错误,您也可以访问该文档链接。
如果:
- 您没有访问我的网站与当前的IE打开并粘贴在地址栏中的链接。它显示以下错误:
Windows Internet Explorer
无法从MyHostName下载Document.ashx。
无法打开此Internet站点。
请求的网站不可用或无法找到。
请稍后再试。
有谁有一个线索造成这个在Firefox中自然可以正常工作。
我已经有几个人在我的办公室尝试使用IE,他们都得到同样的问题。他们都说它可以在Firefox中使用。
就像rymo说的设置 Cache-Control:private
,如果你的回复头碰巧有 Pragma:no-cache
,你也必须把它改成 Pragma:token
。
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:
- You're on my website and click a download link.
- You access anything on my site and paste the URL into the address bar and access it.
- You've already access the document link once before, even if it did error.
It doesn't work if:
- You've not accessed my site with the current IE open and paste the link in the address bar. It displays the following error:
Windows Internet Explorer
Unable to download Document.ashx from MyHostName.
Unable to open this Internet site.
The requested site is either unavailable or cannot be found.
Please try again later.
Does anyone have a clue what would cause this. Naturally it works fine in 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.
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:无法从*下载*。无法打开此网站。请求的网站不可用或无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!