在 IE 中通过 HTTP 下载文件
我在 IE 中通过 HTTPS 下载文件(在我的 DNN 模块中)时遇到问题。这是 IE 中的一个已知问题(Microsoft 支持),我发现了很多相关文章,例如此处。 该帖子建议不要触及 IE 中安全连接的缓存设置。但我们的代码一直使用HttpCacheability.Public。
Response.Cache.SetCacheability(HttpCacheability.Public);
虽然,当我检查相关 HTTP 响应的标头时,它显示了
Cache-Control: no-cache,
Pragma: no-cache
如何控制这些值?
I am experiencing problems with file downloads (in my DNN module) in IE over HTTPS. It is a known problem in IE (Microsoft support) and I found many related articles, like the one here.
The post suggests not touching the cache settings for a secure connection in IE. But our code has always been using HttpCacheability.Public.
Response.Cache.SetCacheability(HttpCacheability.Public);
Although, when I inspected the headers for the HTTP response in question, it shows
Cache-Control: no-cache,
Pragma: no-cache
How else can these values be controlled?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,客户的主机设置覆盖了模块输出。改变它们有帮助。
It turned out that the customer's host settings were over-riding the module output. changing them helped.