Tag Info

New answers tagged

0

How about if you try to unzip and untar in separate steps: gunzip mediawiki-1.24.1.tar.gz This will create the file mediawiki-1.24.1.tar, and then untar with: tar xvf mediawiki-1.24.1.tar Is that better?


0

This worked for me, basically match location based on txt.gz extension and then for such files, set correct encoding and mime type: location ~* /my/data/.*txt.gz$ { add_header Content-Encoding gzip; gzip off; types { text/plain gz; }; root /; }


1

Set up nginx gzip_static example: location / { gzip_static on } http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html


0

Nginx can't just decompress these files before serving them. You'd need some sort of script that does this for you then serves the results to the user. Attempting to force the .gz file as text will just result in garbage output.


1

CloudFlare will only gzip TTFs if they are transferred with one of these mime types: font/ttf application/ttf application/x-ttf Source: https://support.cloudflare.com/hc/en-us/articles/200168396-What-will-CloudFlare-gzip-



Top 50 recent answers are included