IE cannot download files over SSL served by WebSphere

后端 未结 6 1725
眼角桃花
眼角桃花 2021-02-15 18:22

IE 7 & 8 both throw an error when users attempt to download a csv file over https.

Internet Explorer cannot download downloadPage.jsf. Internet Explor

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-15 18:44

    I hade the same problem. After set "Content-Disposition" and "Content-Type", add this code.

    Java code

    // IE requires these three lines, exactly like this
    response.setHeader("CookiesConfigureNoCache", "false");             
    response.setHeader("Pragma","private,no-cache");     
    response.setHeader("Cache-control","private,no-store,no-cache,max-age=0,must-revalidate");
    

    PHP code

    // IE requires these three lines, exactly like this
    header("CookiesConfigureNoCache: false");
    header("Pragma: private,no-cache");
    header("Cache-control: private,no-store,no-cache,max-age=0,must-revalidate");
    

提交回复
热议问题