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
1
vote
1 answer

bzip2 and compressed stream concatenation

With gzip you can do something like this: gzip -c file1 > output.gz gzip -c file2 >> output.gz gzip -c file3 >> output.gz and when you uncompress output.gz it will contain concatenated values of file1 file2 and file3. Can the same be done reliably…
user13185
1
vote
1 answer

Can automatic decompression be configured in .htaccess?

I've got a bunch of static files (eg index.xhtml) in an Apache2 web root. I don't have control over the server's configuration, but am allowed to modify .htaccess in the web root. I would like to pre-compress the files (eg index.xhtml.gz) to improve…
1
vote
0 answers

Why do i get gzip css and js with full size instead of compressed size

I am doing some tests with gzip, I have manually compressed the CSS and JS with gzip. The size of the JS has dropped from 33kb to 7kb. The problem is when I look in the network tab in Chrome or Firefox it shows me that the file has 33kb instead of…
EPurpl3
  • 111
  • 3
1
vote
1 answer

Nginx reverse-proxy to a cloudfront distribution and preserve gzip compression

I have problems trying to set up a nginx reverse-proxy that preservers gzip compression. My setup : I have a CLoudfront distribution with gzip compression enabled (as you can see on http://dvty1uxa5ftxq.cloudfront.net my main.js is indeed…
1
vote
0 answers

AWS beanstalk: Why settings reset when beanstalk servers are restarted, however WAR deployement work fine with the changes

After lots of struggles, I identified how to enable gzip compression on my aws beanstalk Java-tomcat environment In war file I have instructions to overwrite this file which have few added file types for compression e.g:…
PHP Avenger
  • 259
  • 2
  • 8
1
vote
2 answers

What steps are necessary to enable support for Content-Encoding: gzip POST bodies to an ASP.NET application hosted in IIS 8.5

Sending Accept-Encoding: gzip to my server currently upgrades the server responses with gz compression. Sending Content-Encoding: gzip POST bodies to my server does not result in my application being activated. Ignoring all other concerns, what are…
K. Alan Bates
  • 223
  • 2
  • 12
1
vote
6 answers

Nginx + Ubuntu 9.10, gzip not functioning

So I installed and configured Nginx 0.7.62 on a new Slicehost Ubuntu 9.10 slice. All seems to work fine with the server, except that gzip isn't working for one reason or another. I made sure that it's setting were correct in…
Matt
1
vote
1 answer

GZip on IIS6.0 - Some sites work, others don't?

I have a 2k3 server setup running iis6.0 and I've just enabled gzip compression successfully - for the most part. Most sites (eg: clickhips.co.uk) are coming up in YSlow as being compressed fine however the site I'm currently developing…
Wayners
  • 21
  • 2
1
vote
1 answer

How can I set an environment variable based on pre-rewritten URI or post-rewritten query parameter?

So there's a file in WordPress, wp-content/blogs.php, that serves files uploaded through WordPress. There's a RewriteRule in the WP .htaccess that rewrites URLs of the format www.example.com/files/11/01/filename.mp3 to URLs of the format…
Michael
1
vote
0 answers

Apache 2.4.23: gzip for HTTP 503

Can Apache be instructed to gzip the contents of an HTTP 503 response? A page of a website that I manage needs to be temporarily removed. Not only does HTTP 503 aptly describe the situation but it also preserves search engine ranking. The response's…
Jmweb
  • 11
  • 2
1
vote
2 answers

Enable compression for HTTP2 server-pushes on an apache server

If I enable H2 for my apache server and specify a preloaded link header on a HTML Dokument, the server performs a H2 server-push because it parses the Link header -- so far so good. The problem is that this pushed resource is delivered without…
Moritz
  • 238
  • 1
  • 8
1
vote
1 answer

gzip piped output into ssh command

I make backup over ssh like this: mysqldump -u dbuser -pXXXXXXXX dbname | ssh -i ~/.ssh/id_rsa_backup backup@my.server.com 'cat > /var/backups/services/my_service/db/$(date +"%Y-%m-%d").sql' How to send gziped data to save bandwith and disk space ?
bux
  • 626
  • 2
  • 6
  • 20
1
vote
1 answer

Nginx: Conditional request gunzip when `Content-Encoding: gzip` is set

How would it be possible in nginx to evaluate if the Content-Encoding: gzip request header is set (coming from a web client to nginx), and then let nginx gunzip the request before it gets forwarded to an upstream (e.g. fastcgi)?
derFunk
  • 119
  • 6
1
vote
2 answers

GZIP not decompressing as a directory

I am trying compress a folder so I can FTP it to my web server. I am compressing on osx snow leopard and decompressing on ubuntu 8.04 These are the two commands I am running sudo git archive master | gzip > v-1.25.gz sudo gunzip v1.25.gz When I…
Cato Johnston
  • 113
  • 1
  • 4
1
vote
1 answer

Can't get included CSS and JS files to be compressed

I have enabled compression via .htaccess and in httpd.conf However when I run it through the various online testers, its always saying that various included files are not compressed. Apache version is 2.2.15 .htaccess currently looks like this: …
cosmicsafari
  • 199
  • 1
  • 12