All of the zip files downloadables from my site are being corrupted.
Looking for answers online I always find the same result: To edit htaccess because it is double compressing the files. I'm quite certain this is the problem as if I go to the link directly it works, and if I upload a zip file uncompressed, it works.
I have tried editing my htaccess to match the code below but it does not seem to work!?
• Do I need to place an htaccess file with that right in the /downloadable directory?
• Could I use an external link as a download, i.e through dropbox or something?
# php_flag zlib.output_compression on # problems with downloadable content
...
...
...
# Insert filter on all content
### SetOutputFilter DEFLATE # problems with downloadable content
# Insert filter on selected content types only
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
ini_set("zlib.output_compression", "Off");
but it didn't help :(. – pevik May 24 '20 at 19:23