IE cannot download foo.jsf. IE was not able to open this internet site. The requested site is either unavailable or cannot be found -


i'm providing file download (usually csv or pdf) in jsf web application on https (ssl) host. works fine in browsers, ie7/8 gives following error:

internet explorer cannot download foo.jsf. internet explorer not able open internet site. requested site either unavailable or cannot found. please try again

i think error related jsf <h:commandlink> tag not being compatible ie.

<h:commandlink value="download" action="#{bean.download}" /> 

how caused , how can solve it?

this typical msie error message when download been provided on https (ssl) while response headers been set disable browser cache via no-cache. issue not related jsf.

you need relax response headers have influence on browser cache. should not contain no-cache instruction. set public, private or no-store.

response.setheader("cache-control", "public"); response.setheader("pragma", "public"); 

see ms kb q316431.

additionally, if happen run on websphere application server, add below header in order prevent overriding cache-control header afterwards:

response.setheader("cookiesconfigurenocache", "false");              

see ie cannot download files on ssl served websphere.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -