在SSL站點下載Excel文件時,我得到了以下錯誤:Internet Explorer中顯示錯誤下載的Excel文件時在SSL網站
Internet Explorer cannot download xxxx.aspx from mysite.com.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
谷歌搜索後,我懷疑它的響應頭的問題。
我嘗試在此頁面的解決方案,並設置標題:
http://trac.edgewall.org/ticket/1020
HttpContext.Current.Response.AddHeader("Pragma", "no-cache");
HttpContext.Current.Response.CacheControl = "private";
但它不工作。 有什麼建議嗎?