Questions tagged [gzip]

Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

Gzip is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. DEFLATE was intended as a replacement for LZW and other patent-encumbered data compression algorithms, which, at the time, limited the usability of compress and other popular archivers.

"Gzip" is often also used to refer to the gzip file format, which is:

  • a 10-byte header, containing a magic number, a version number and a time stamp
  • optional extra headers, such as the original file name
  • a body, containing a DEFLATE-compressed payload
  • an 8-byte footer, containing a CRC-32 checksum and the length of the original uncompressed data

source: wikipedia

334 questions
5
votes
4 answers

how to enable iis 7 dynamic content compression?

I've turned on dynamic content compression in IIS 7, but Fiddler is showing that my dynamic pages are still being served without content-encoding: gzip. Static content compression is working fine on the same servers. Not sure if it matters but most…
davidcl
  • 162
  • 2
  • 2
  • 11
4
votes
3 answers

Problems with Gzip compression on Amazon CloudFront

I had a CloudFront distribution configured with S3 as an origin. I have enabled "Compress Objects Automatically" as per Amazon guide. Waited for the distribution status to display "online" then invalidated all files. My Response headers…
Lukigi
  • 151
  • 1
  • 5
4
votes
2 answers

gzip on httpd or on Tomcat?

In a Java web application running in an Apache Tomcat servlet container with an Apache httpd in front of it: is it better to use enable GZIP compression on Tomcat or on httpd level? is it better to have SSL enabled in Tomcat or on…
mhaller
  • 273
  • 2
  • 7
4
votes
2 answers

gzip_ratio not printing in nginx logs

I'm configuring the nginx access_log to output in JSON format to use with other tools. The data I want includes info about the compression. I have gzip on, but the only thing I'm getting for the gzip_ratio is -. To confirm, the embedded var is…
gotmikhail
  • 141
  • 1
  • 6
4
votes
1 answer

dd command piped over gzip and ssh faster and faster as dd progresses

I am running the following command to copy a LVM from one host to another: dd if=/dev/vg_1/lv1 conv=noerror,sync bs=4M | gzip | ssh user@ip 'gzip -d | dd of=/dev/vg_2/lv1 bs=4M' To begin with I was getting a speed of about 11 MB/s about an hour…
user2284355
  • 455
  • 2
  • 10
  • 24
4
votes
1 answer

IIS 7.5 inconsistently Gzips files (with PHP & ASP.NET)

I made some changes to the web.config of a server running IIS 7.5 improve the performance (mostly front-end). A 3rd party testing tool says the site is running "PHP/5.3.10, ASP.NET" and if memory serves, it is ASP.NET 4.5 I think it's due to the odd…
adam-asdf
  • 191
  • 1
  • 11
4
votes
3 answers

Why is gzip compression varying in efficiency in IIS?

While running Fiddler, I noticed something odd in a request for a static ~5MB XML file to my server: Despite sending byte-for-byte identical headers (Edit: Including the headers), the responses were different: Response A: 1. 700KB of gzip…
Brian
  • 303
  • 1
  • 3
  • 15
4
votes
3 answers

Turn off gzip for a location in Nginx

How can gzip be turned off for a particular location and all its sub-directories? My main site is at http://mydomain.com and I want to turn gzip off for both http://mydomain.com/foo and http://mydomain.com/foo/bar. gzip is turned on in nginx.conf. I…
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
4
votes
1 answer

How to disable gzip compression for particular virtual host apache

Im using Apache and I have enabled zip compression to all my virtual host domain. However, I want to disable the gzip compression on one particular virtual host only. I try this method. All separated virtual host file i.e. domain.com.conf has this…
James W.
  • 749
  • 2
  • 7
  • 12
4
votes
1 answer

Enable gzip on Nginx

Yes, I know that there are a lot of other questions that seem exactly like this out there. I think I must've looked all of them. Twice. In desparation, I'm adding another in case my specific configuration is the issue. Bear with me. First, the…
Rob Wilkerson
  • 1,465
  • 4
  • 17
  • 25
4
votes
1 answer

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET /Symfony/web/js/highcharts.js HTTP/1.1" -/- (-%) "GET…
gremo
  • 339
  • 1
  • 4
  • 20
4
votes
3 answers

tar gzip slowing down server

I have a backup script that: compress some files generate md5 copy the compressed file to another server. the other server finishes comparing MD5 (to find copy errors). Here it's the core script: nice -n 15 tar -czvf $BKP $PATH_BKP/*.* \ | xargs…
Josir
  • 143
  • 1
  • 5
4
votes
3 answers

Combine two or more compressed files

I have 2 gz files those I need to merge into one -- that is to say I want to combine two .gz files into one such that when I extract the combined file I get a single file containing the concatenation of the original input files. time join <(zcat…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
4
votes
1 answer

Enabling HTTP Compression in WebSphere Application Server 7

I know the correct way of enabling gzip HTTP Compression for a WebSphere Application Server is to activate and configure the mod_gzip module in the IBM HTTP Server connected/installed in this environment. However, our WAS 7 environments don't have…
Filipe Fedalto
  • 141
  • 1
  • 4
4
votes
2 answers

Should I serve compressed PDFs?

I'd like to know if there's a general rule of thumb wheter to enable gzipping for PDF files or not. I use NGINX but I think this would be helpful for Apache users as well. Thanks.
pvorb
  • 1,050
  • 3
  • 11
  • 16