https文件下载报没法找到站点

https文件下载报无法找到站点

   昨日https文件下载,IE报无法找到站点,但是http测试的时候是好的,网上找了一下,原来下载代码需要加一段,如下:

response.setHeader("Pragma", "public");
     response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");