Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26781

    I am using PD4ML 380fx6 taglibs which generates a PDF. This works fine in Chrome, Firefox and IE9 +.

    But when I do it in IE8 I get the attached error.

    This is the transform tag I am using


    <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>

    Http Response headers
    Cache-Control:private
    Cache-Control:no-cache
    Connection:close
    Content-disposition:attachment; filename=Report.pdf
    Content-Length:10646
    Content-Type:application/pdf
    Date:Wed, 19 Sep 2012 16:07:16 GMT
    Expires:0
    Pragma:no-cache
    Pragma:cache
    Server:Apache-Coyote/1.1

    Anyone have any ideas?

    #29123

    I think this may be related to it.

    http://blogs.msdn.com/b/ieinternals/archive/2009/10/02/internet-explorer-cannot-download-over-https-when-no-cache.aspx

    Any idea how to fix this using the PD4ML TagLib?

    #29124

    It looks like the problem is caused by a caching of documents, downloaded by HTTPS. Please correct if I am wrong.
    It was a known issue of older PD4ML JSP taglib versions, until we found a safe HTTP header directives set.

    Currently PD4ML taglib sets only the following HTTP cache control directives:

    [language=java:1134zpa4]((HttpServletResponse) sr).setHeader(“Pragma”, “cache”);
    ((HttpServletResponse) sr).setHeader(“Expires”, “0”);
    ((HttpServletResponse) sr).setHeader(“Cache-control”, “private”);[/language:1134zpa4]

    In your case there are some other cache controls (including conflicting with the above) – probably the hosting application is configured to add them to each reply. Try to switch it off for PDF generating JSPs.

    #29125

    @PD4ML wrote:

    It looks like the problem is caused by a caching of documents, downloaded by HTTPS. Please correct if I am wrong.
    It was a known issue of older PD4ML JSP taglib versions, until we found a safe HTTP header directives set.

    Currently PD4ML taglib sets only the following HTTP cache control directives:

    [language=java:1mh17s0m]((HttpServletResponse) sr).setHeader(“Pragma”, “cache”);
    ((HttpServletResponse) sr).setHeader(“Expires”, “0”);
    ((HttpServletResponse) sr).setHeader(“Cache-control”, “private”);[/language:1mh17s0m]

    In your case there are some other cache controls (including conflicting with the above) – probably the hosting application is configured to add them to each reply. Try to switch it off for PDF generating JSPs.

    PD4ML, tankyou ! Works like a charm =)

    I also have add cache-control: no-store, no-cache. See lines bellow:

    response.setHeader(“Pragma”, “cache”);
    response.setHeader(“Expires”, “0”);
    response.setHeader(“Cache-control”, “private”);
    response.setHeader(“Cache-Control”, “no-store, no-cache, must-revalidate”);

    Again, tankyou!

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.