Version 6

    IE6 Download Issues Over SSL

     

    From http://support.microsoft.com/default.aspx?scid=kb;en-us;812935#kb3

    When you try to open a Microsoft Office document or a PDF file by typing an HTTPS Uniform Resource Locator (URL) for the document on the Address bar in Internet Explorer 6 Service Pack 1 (SP1), the document may not open, and you may receive the following error message: Internet Explorer cannot download document.pdf from server

     

     

    The following forum issue extract describes how you can disable the Cache-Control header which causes this problem.

    http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55212

     

    jboss-3.2.6+ supports a WEB-INF/context.xml descriptor that allows one to customize a war context. The custom valve would be added by including a myapp-web.war/WEB-INF/context.xml with:

     

     
    <Context> 
    <Valve className="org.apache.catalina.authenticator.FormAuthenticator" 
    disableProxyCaching="false" ></Valve> 
    </Context> 
    

     

     

     

    With this the headers for the jmx-console secured using form auth look like:

     
    http://localhost:8080/jmx-console/ 
    
    GET /jmx-console/ HTTP/1.1 
    Host: localhost:8080 
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
    Accept-Language: en-us,en;q=0.5 
    Accept-Encoding: gzip,deflate 
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
    Keep-Alive: 300 
    Connection: keep-alive 
    Cookie: JSESSIONID=73BBE64CC7EE140B8BE9564A3674B5C2 
    
    HTTP/1.x 200 OK 
    Set-Cookie: JSESSIONID=544A25A77D9EEBB2AD92719D5B63262F; Path=/jmx-console 
    Etag: W/"711-1098230852000" 
    Last-Modified: Wed, 20 Oct 2004 00:07:32 GMT 
    Content-Type: text/html 
    Content-Length: 711 
    Date: Wed, 20 Oct 2004 00:24:10 GMT 
    Server: Apache-Coyote/1.1 
    ---------------------------------------------------------- 
    

     

     

    Without this or with the disableProxyCaching=true there are Pragma: No-cache and Cache-Control: no-cache headers in the replies:

     

     
    http://localhost:8080/jmx-console/ 
    
    GET /jmx-console/ HTTP/1.1 
    Host: localhost:8080 
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
    Accept-Language: en-us,en;q=0.5 
    Accept-Encoding: gzip,deflate 
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
    Keep-Alive: 300 
    Connection: keep-alive 
    Cookie: JSESSIONID=544A25A77D9EEBB2AD92719D5B63262F 
    
    HTTP/1.x 200 OK 
    Pragma: No-cache 
    Cache-Control: no-cache 
    Expires: Wed, 31 Dec 1969 16:00:00 PST 
    Etag: W/"711-1098230852000" 
    Last-Modified: Wed, 20 Oct 2004 00:07:32 GMT 
    Content-Type: text/html 
    Content-Length: 711 
    Date: Wed, 20 Oct 2004 00:27:13 GMT 
    Server: Apache-Coyote/1.1 
    ---------------------------------------------------------- 
    

     

     

     

    -


     

    Alternative solution

     

    An alternative is to manually override the Pragma and Cache-Contol response headers:

     

     
    response.setHeader("Cache-Control", "cache, must-revalidate"); 
    response.setHeader("Pragma", "public"); 
    

     

    See also http://nl2.php.net/header