What is significance of zlib.output_compression in zip functionality?
Should it be on or off?
Do I have to add ContentType gzip
Should the extension of generated file should be .gz instead of zip.
Which is the best way of zipping a bunch of files, huge number of files.
zlib.output_compression is only for compressing text data for the browsers to reduce the traffic, it can not be used to generate zip files.
You should use an appropiate library to do that severside and then stream the zip to the client with the correct mime type header, then the browser will ask the user to store the file as an usual download.