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
2
votes
1 answer

How to check if my VPS Apache hosting does GZIP on response?

I have DreamHost VPS hosting, the server is Apache. When I load my web-site in the browser, and inspect the HTTP reqests/responses in my browser's dev tools, I can see that my browser sends Accept-Encoding gzip, deflate in all HTTP requests it…
Šime Vidas
  • 183
  • 2
  • 10
2
votes
1 answer

Gzip command to produce exact same output than tar -cvzf?

I did thought the following commands where equivalent, but they produce different checksums: tar -cvzf ... and tar -cvf ...; gzip ... does not produce the same output. sha1sumdiffers. What would be the gzip command that would perfectly match the tar…
Olivier
  • 415
  • 3
  • 5
  • 15
2
votes
1 answer

enabling gzip with htaccess...why is it hit or miss?

I have shared hosting through Justhost. I use the HTML5 Boilerplate .htaccess (have tried other methods from here and there without luck) the compression part is as follows: # Force deflate for mangled headers…
adam-asdf
  • 191
  • 1
  • 11
2
votes
2 answers

Gzip vs. Reverse Proxy Cache

I have a mostly static site running on Ruby on Rails that is using the Varnish reverse proxy cache to save on hits to the Rails backend. The problem is that a user can login to the site and when they do we use ESI (edge side includes) to show user…
davidsmalley
  • 457
  • 1
  • 6
  • 14
2
votes
1 answer

Apache serving empty gzip with assets produced by Rails Asset Pipeline

I followed the steps described in the blogpost The Asset Pipeline, from development to production and tweaked them to my environment. The two important files are: /etc/apache/site-available/example.com ServerName example.com …
wintersolutions
  • 143
  • 2
  • 11
2
votes
2 answers

nginx configuring uwsgi and gzip buffers for different usage scenarios

I'm trying to configure two URL path groups for relatively different usage scenarios and resource consumption in nginx. Both are served by same uwsgi application. Group 1: Regular HTML pages up to cca 128k in size, default Group 2: Large XML…
V. K.
  • 21
  • 1
  • 2
2
votes
2 answers

Apache 2.2 serving .html.gz content

How can I get Apache 2.2 on Centos to serve static .html.gz files from local disk to browsers, without them being prompted to download the file (ie - I want it rendered normally in the browser)?
jamespo
  • 1,698
  • 12
  • 12
2
votes
1 answer

How can you use gzip for static website content served by a Content Delivery Network? Does it improve page load times?

I'm serving up most of my static media from a CDN for my website. This includes images, videos, javascript files, and CSS files. YSlow and Google's Performance tool tell me that I should be gzip'ing this content. How can I gzip content served up…
MikeN
  • 8,442
  • 5
  • 23
  • 18
2
votes
1 answer

Apache deflate ignores javascript

I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with multiple mime-types but all without effect. Its not a…
realshadow
  • 121
  • 4
2
votes
1 answer

Apache send HTML without comments

I have a problem with my Apache Webserver, I got 2 environments: Development and Production. Both have the same configuration, but the first one sends the HTMLs exactly as they've been created, the second one doesn't send exactly the same file. They…
enedebe
  • 1,066
  • 3
  • 11
  • 18
2
votes
2 answers

What reasons (if any) are there to *not* enable gzip compression for your web server?

Specifically I am working with IIS7, in case there are platform specific reasons, but I am curious in general. I know gzip compression is more CPU intensive for both the server and the client, but it seems like the trade off for lower bandwidth…
CoolUserName
  • 513
  • 2
  • 5
  • 9
2
votes
1 answer

Turn off gzip compression for one virtual host

I'm running into a problem where I think PHP deprecation errors are causing the headers to be malformed, causing a 330 error. If I disable error reporting for E_DEPRECATION, the error disappears, so I'm fairly certain it's related to that. On our…
Tommy Brunn
  • 123
  • 4
2
votes
3 answers

gzip compression good or bad?

I have a server that currently does a lot of processing in my application and the target users are those who have a very good internet connection. The output that is sent from the server is always text/html and we do not use any media (audio/video)…
YD8877
  • 325
  • 1
  • 5
  • 11
2
votes
1 answer

Apache inflate application/ with mod_filter

I need to prevent pdf objects from being gzipped. Really, this only needs to take place if the request is from the Mozilla browser (but since I can't get something as seemingly simple as no-gzip for application/pdf, I figure it's wiser to start…
BGT
  • 31
  • 4
2
votes
3 answers

Attempted gzip of directory applied gzip to each file individually

I tried to gzip a directory with the following command: gzip -r /home/path/to/backups/mydirectory.gz /home/site/public_html/ I was expecting to see a .gz file show up inside ...backups containing all the files found in ...public_html. This isn't…
Sampson
  • 530
  • 2
  • 6
  • 18