apache 2.4 to compress content before it is delivered to the client, using
mod_deflate and the clients header set to
"Accept-Encoding: gzip". So this I got already working, producing a valid gzipped file:
curl --header "Accept-Encoding: gzip" https://my.website/ > content.gz
Is there a way to allow
"Accept-Encoding: zip" to compress as
As far as I understand the documentation this seems not possible:
The gzip encoding is the only one supported to ensure complete compatibility with old browser implementations. The deflate encoding is not supported ... (https://httpd.apache.org/docs/2.4/mod/mod_deflate.html)
Question comes from a
Windows user who cannot unzip
gzip files (I guess using only Windows native tools).
[edit: as gerald-schneider noted a browser will automatically decompress the content - but we are using
curl and such command line tools to be able to script the API and thus there is no browser involved.
Thanks also all the other answers and comments, I think I should have be more precise , i.e. writing down the
curl command to begin with].