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

phpMyAdmin export, half file compressed?

Okay, I have to admit, that I derped up. I've exported a database from a to-be-reinstalled server and didn't check that file. Now, that I try to import it, I've discovered something very strange, the file was supposed to be GZIP compressed, yet it…
Enbyted
  • 33
  • 6
3
votes
1 answer

GZip compression not working on Tomcat7

I recently tried using gzip compression to improve web UI performance. I configured Tomcat Connector as below. compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla,…
3
votes
1 answer

Cannot extract .tar.gz archive in bash

I am in my /w dir and I saved the .tar.gz archive from the MediaWiki server like this: $ cd /public_html/w $ wget releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz But once I try to extract it: $ tar -xvzf mediawiki-1.24.1.tar.gz It…
PowerUser
  • 133
  • 4
3
votes
3 answers

How to serve giziped text files with nginx

To save space we gzip all our logs and text files and these files are browsed by the user, but these files are downloaded instead of opened in the browser, I couldn't find a way to set mime-type text/plain for such files e.g. this does not…
Anurag Uniyal
  • 151
  • 1
  • 4
3
votes
4 answers

Are there performance impacts to using gzip for web services?

I have a very typical scenario: browser -> web server -> web service I've seen lots of articles/documentation about the benefit of compressing the data sent from the web server to the browser to save bandwidth, but I'm wondering if there are similar…
sernaferna
  • 131
  • 1
  • 3
3
votes
4 answers

Logrotate appends "1" at the end of compressed file name

I have a script which runs as a cronjob every 30 mins and takes mysqldump of some tables. The dump files are stored in /var/log/…
reflektor
  • 33
  • 1
  • 3
3
votes
2 answers

Should I compress resources with a loadbalancer (Nginx) or with a web server (IIS7)?

I have the following setup: Nginx (1.1.19) on the front as a reverse proxy / loadbalancer IIS7 at the back as web servers MySQL as a database I am trying to figure out whether to compress static resources like JS, CSS etc. and generated HTML with…
3
votes
2 answers

Can't gzip some JS and CSS files

I am optimizing a magento store, and some JS and CSS (compiled and minified in a MEDIA folder) aren't being served gziped as they should. All pages are gziped (ex. this HTML page) but some content isn't (ex. this JS file). Testing via gtmetrix.com…
MgtWizards
  • 139
  • 1
  • 1
  • 4
3
votes
3 answers

gzip not working for some files using nginx

Some files are not gzipped on their way to the user browser in our setup. for example http://myhostname.com/css/build/20120904-1.css http://myhostname.com/js/dojo/dn/main.js?20120904-1 http://myhostname.com/js/jquery-min/compiled.js?20120725-4 can…
shakalandy
  • 778
  • 4
  • 10
3
votes
1 answer

Nginx: disable gzip on images

In my nginx conf I have which enabled gzip: gzip on; gzip_proxied any; gzip_types text/plain text/css text/javascript; gzip_comp_level 9; gzip_vary on; However this also gzips my jpeg's which actually increases size. How can I, ideally with out…
user71736
3
votes
3 answers

gzip "No space left on device"

Using gzip 1.3.12 / ubuntu 64bit I am getting "No space left on device" yet there appears to be plenty of disk space remaining. gunzip 03-05-2012--22-52-01.tar.gz gzip: 03-05-2012--22-52-01.tar: No space left on device If you run the above gunzip…
Kris
  • 271
  • 2
  • 3
  • 11
3
votes
3 answers

Gzip mistake with directory

I accidently gzip -rv directory and now all individual files is in .gz format. How do I undo this and gunzip all .gz files within the directory? And how do I just gzip this whole directory? I tried gunzip directory/*.gz but only gunzip the files in…
Maca
  • 1,043
  • 2
  • 19
  • 30
3
votes
2 answers

Using AddEncoding x-gzip .gz without actual files

With Apache (2.2 and later) how can I achieve the following. I want to transparently compress using GZip encoding (not plain Deflate) the output when a certain file is queried with its name plus the extension .gz, where the .gz version doesn't…
0xC0000022L
  • 1,516
  • 2
  • 22
  • 42
3
votes
3 answers

How to avoid gzip on php resized images?

We should not gzip images, right? How do I avoid gzipping on images like this: img/sample.php?id=image_name.jpg can also be called like this img/sample.php?id=image_name.jpg&size=3 the actual images live here /images/items/ I tried using 2 types of…
Joel
  • 131
  • 5
3
votes
1 answer

Config NGINX to GZip Font Files? ( Different gzip_types for different directories)

SOLUTION: It turns out it is not my config / NGINX faults - my DNS provider, cloudflare, is preventing the fonts from being GZipped for some reason I'm using NGINX with GZIP_Static module installed. I'm trying to get my .SVG/.TTF @FONT-FACE font…
Professor Frink
  • 529
  • 4
  • 7
  • 15