[Zope] zip files corrupted with IE when opened, fine when downloaded

Jim Washington jwashin at vt.edu
Mon Mar 17 10:13:58 EDT 2008


robert rottermann wrote:
> Hi there,
> we have a problem with an intranet that runs using plone 2.5.3
>
> when users using IE want to open a zip file from the intranet by using
> the "open" option from the download dialog they get winzip complaining
> that the file is corrupted.
> if they select "save" from the same dialog they can open the zip archive
> without problem.
>
> does anyone know a solution for this or give me an idea where to look
> for one?
>   
I had a similar problem with pdf files, and googling indicated that IE 
might be deleting the cached copy of the document before the opening 
application can get to it.

I have had some success setting cache control to "private".  Something like:

request.response.setHeader('cache-control','private')

"private,must-revalidate" may also be a good value, depending on your 
situation.

It's worth a try...

- Jim Washington



More information about the Zope mailing list