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
</Location>

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: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories