Select Page

Broken download when downloading zip files

A lot of people have tried numerous times to download files from my download section without
success, the error message was always the same

Unrecoverable error "PCLZIP_ERR_BAD_FORMAT (-10)"

Also, Some tried to unpack the zip file locally using stuffit/Winrar/7Zip and get an error suggesting
that the archive is damaged.

Only Internet Explorer users were having issues, this is because of Internet explorer not able to handle
compression of all file types. I solved the issue by changing my mod_deflate.conf which now look like the following:

<Location />
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript

# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary

I found that I had to use application/x-javascript instead of application/javascript to actually get javascript files on my
server to be served compressed.

mod deflate documentation:

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments


Would love your thoughts, please comment.x