我无法使用 SSL(https) 在 Internet 上下载 xls 文件 我在 jsp 页面中使用以下标题信息。其他浏览器也可以正常下载。如果我可以在标题信息中添加任何东西,请帮助。
response.setHeader("Cache-Control","no-cache")
response.setHeader("Pragma","no-cache")
response.setDateHeader ("Expires", 0)
最佳答案
您可以尝试这些 header :
Content-Type: application/vnd.ms-excel
Content-Disposition: attachment; filename="my_file.xls"
Cache-Control: max-age=0
Pragma: public
它对我有用!
关于ssl - 无法在 IE 8 上使用 https 下载 XLS 文件,但可以在其他浏览器上正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32653084/