cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <>
Subject RE: [FYI] How IE handles PDFs
Date Wed, 30 Mar 2005 06:47:47 GMT

> -----Original Message-----
> From: depub2 []
> Give IEx the opportunity to cache. In particular, ensure the server
> not
> set any headers causing IEx not to cache the content. This may be a
> problem if the document is sent over HTTPS, because most IEx
> will by default not cache any content retrieved over HTTPS. Setting
> Expires header entry may help in this case:
> response.setDateHeader("Expires", System.currentTimeMillis() +
> cacheExpiringDuration * 1000);
> Consult your server manual and the relevant RFCs for further details
> headers and caching.

We had to set two HTTP headers explicitly to be able to download
anything (binary data) that couldn't be handled natively by IE. It was
indeed a problem with the cache. IE downloads the file, removes it and
then tries to open it (or some similair care). This is a known problem
in IE, but doesn't seem to be such a big problem to fix it...

I wrapped the cocoon servlet, and overwrite the headers. But maybe it's
better to do this in a filter. Here are the headers (I don't know which
and how you can change these headers; once they worked for me, I was
scared to change them ;)

Pragma: public
Cache-control: max-age=0

Hope this can help anyone!


> Sylvain
> --
> Sylvain Wallez                        Anyware Technologies
> Apache Software Foundation Member     Research & Technology Director

View raw message