title: IE cannot download files over SSL served by WebSphere
body: <p>IE 7 &amp; 8 both throw an error when users attempt to download a csv file over https.</p>
  
  <blockquote>
    <p>Internet Explorer cannot download downloadPage.jsf. Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again</p>
  </blockquote>
  
  <p>I read about the issues IE has in relation to caching so I changed the response to allow public caching. See this issue: <a href="https://stackoverflow.com/questions/5034454/internet-explorer-cannot-download-the-file-served-by-jsf">IE cannot download foo.jsf. IE was not able to open this internet site. The requested site is either unavailable or cannot be found</a></p>
  
  <pre><code>response.setHeader("Pragma", "public");
  response.setHeader("Cache-Control", "public");
  </code></pre>
  
  <p>But I am still getting this error.</p>
  
  <p>Any ideas what else could be causing the issue? Here's the complete snippet:</p>
  
  <pre><code>HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
  response.setContentType("text/plain");
  response.setHeader("Content-Disposition", "attachment; filename=\"" + browserFilename + "\"");
  response.setHeader("Pragma", "public");
  response.setHeader("Cache-Control", "public");
  response.getOutputStream().write(contentBytes);
  context.responseComplete();
  </code></pre>