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

325 questions
15
votes
3 answers

Content-Length not sent when gzip compression enabled in Apache?

I would really appreciate some help understanding this Apache behaviour. I am communicating to PHP from an iPhone Objective-C app in application/json. Gzip compression is enabled on the server, and requested by the client. From my…
William Denniss
  • 327
  • 1
  • 3
  • 12
14
votes
4 answers

rsync to compressed archive of file

I take backups of a server with rsync, but those backups are quite large, and I'd like to compress them. Is there a way to have some sort of wrapper around rsync to gunzip the file in the backup, rsync the changes from the live file, then re-gzip…
rjmunro
  • 2,221
  • 4
  • 18
  • 22
14
votes
3 answers

How to use GZip to create a .zip file

Is it possible to use GZip to create a .zip file? I've been Googling and can't find anything that leads me to believe this is possible
Ben
  • 3,630
  • 17
  • 62
  • 93
11
votes
1 answer

Why isn't the Nginx Gzip Precompression module working?

I'm currently trying to set up Nginx to serve all of my static files. Since they will not be changed very frequently at all I want to us the gzip_static module to allow me to pre-gzip copies of my files to save some cpu time and allow better…
Gordon Bailey
  • 213
  • 2
  • 5
10
votes
1 answer

Does Nginx compress files for every request? (with gzip_on)

this is my very first question and please excuse my poor English. I was doing research about how can i improve my page speed and i found out about nginx gzip settings. Below are my gzip settings from nginx.conf gzip on; gzip_disable…
Shinebayar G
  • 275
  • 4
  • 9
10
votes
3 answers

I accidently zipped my whole server

Alright if anyone wants to play god and work miracles i'm down. So, i was given the task of making a script that found files that are older than 6 months, zipped them and then deleted them. On my way in making tihs script i ran this : find / -type…
Dexirian
  • 430
  • 2
  • 11
10
votes
4 answers

How do I most efficiently store and serve 1,000,000+ small gziped files on a Linux web server?

I have large static content that I have to deliver via a Linux-based webserver. It is a set of over one million small, gzip files. 90% of the files are less than 1K and the remaining files are at most 50K. In the future, this could grow to over 10…
Jérôme Verstrynge
  • 4,747
  • 7
  • 23
  • 34
9
votes
2 answers

Why Apache doesn’t gzip css or js files which have parameters?

Some CSS & JS files are not compressed by apache with mod_deflate enabled. This files looks like this "[domain.name]/aggregator.css?..." or "[domain.name]/misc/jquery.js?..." in YSlow. The other CSS & JS without the "?" gets compressed. Kindly…
user15379
9
votes
5 answers

How to gzip logs created by rotatelogs

I'm using rotatelogs to create my daily apache logs in format host....access.log. Now I want to gzip and move log to different directory after it's been finished. How to do that? Update: There was a little mistake. logrotate ->…
Poma
  • 1,289
  • 6
  • 22
  • 35
9
votes
2 answers

How can I enable GZIP compression in Jetty?

I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?
yazz.com
  • 6,743
  • 14
  • 37
  • 38
9
votes
3 answers

Need help with some IIS7 web.config compression settings

I'm trying to configure my IIS7 compression settings in my web.config file. I'm trying to enable HTTP 1.0 requests to be gzip. MSDN has all the info about it here. Is it possible to have this config info in my own website's web.config file? Or do i…
Pure.Krome
  • 6,338
  • 17
  • 72
  • 86
9
votes
6 answers

Does gunzip work in memory or does it write to disk?

We have our log files gzipped to save space. Normally we keep them compressed and just do gunzip -c file.gz | grep 'test' to find important information but we're wondering if it's quicker to keep the files uncompressed and then do the grep. cat…
Ryan Detzel
  • 687
  • 3
  • 7
  • 20
8
votes
6 answers

Break up a dd image into multiple files

I'm doing some data recovery from a hard disk. The disk has about 300GB of data on it, but I lack another hard drive that has 300GB of free space. I have three HDs, with 150, 40, and 120 GB free. For the creation of the first chunk, I was…
lfaraone
  • 1,581
  • 2
  • 17
  • 22
8
votes
2 answers

Apache: Send pre-packed gzip'ed files

I want Apache to send static files gzip'ed over the wire, but also want Apache to not always gzip them over and over again. So I thought if it wouldn't be possible to deliver an .gz file if it exists. This set-up: File structure: static/ | |---…
Boldewyn
  • 239
  • 4
  • 13
8
votes
3 answers

nginx gzip_static: why are the non-compressed files required?

I'm working with nginx 1.4.4 running on Ubuntu 12.04.4. nginx is reverse-proxing a cluster of Rails application servers. Static files (mostly assets) are served directly, without hitting the application servers. I've set it up to gzip responses and…
tompave
  • 564
  • 3
  • 5
  • 14
1
2
3
21 22