You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ilya Oussov <il...@oussov.com> on 2003/04/02 20:08:10 UTC

PDF over https in MSIE problem

Is it possible to download PDF over https with MSIE?  I tested several
combinations of cache control and content-disposition headers but none
worked for me.  Is it at all possible without fall back to HTTP?

MSIE always says "was not able to open this Internet site".

Best regards,
--
  o-:^>___?  Ilya Oussov <il...@oussov.com>
  `~~c--^c'


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: PDF over https in MSIE problem

Posted by Jon Wingfield <jo...@mkodo.com>.
We had this for content types that IE didn't know about, including 
application/x-zip-compressed and application/octet

By default we have a filter which sets cache headers for everything:

<snip>
httpResponse.setHeader("Cache-Control", "no-cache");
httpResponse.setHeader("Pragma", "no-cache");
</snip>

For the offending servlets we added a hack:

<snip>
if (response.containsHeader("Pragma")
     && request.getHeader("user-agent")!=null
     && request.getHeader("user-agent").toUpperCase().indexOf("MSIE")>-1) {
     response.setHeader("Pragma", "public");
}
</snip>

This worked for us over SSL
Also see the notes in 
http://php3.de/manual/en/printwn/function.session-cache-limiter.php

HTH,

Jon

Ilya Oussov wrote:
> Is it possible to download PDF over https with MSIE?  I tested several
> combinations of cache control and content-disposition headers but none
> worked for me.  Is it at all possible without fall back to HTTP?
> 
> MSIE always says "was not able to open this Internet site".
> 
> Best regards,
> --
>   o-:^>___?  Ilya Oussov <il...@oussov.com>
>   `~~c--^c'
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org