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

Linux CLI Make a Tar.Gz with Tar.Gz First-level Directories

Currently, I use this command to make tar.gz archives: sudo tar -zcpvf archive.tar.gz directory1 directory2 directory3 Is there a way to compress multiple archives like above, but instead of compressing regular folders, have tar make sub tar.gz…
GTS Joe
  • 199
  • 2
  • 10
0
votes
2 answers

nginx gzip_static removes Content-Encoding header

My http block defines various gzip rules. Then in where I have pre-comporessed gzip files I’m using the gzip_static module. i.e. something like: http { gzip on; #... server { #other vhost rules location /assets/ { …
Jonny Barnes
  • 155
  • 3
  • 8
0
votes
1 answer

Compressing and streaming files from a linux server

I have a linux server with a lot of unused files, but it is low on disk space. I'd like to take a copy of the files before deleting them. There is not enough disk space to store the compressed version before downloading. I've tried scp -C…
NoChecksum
  • 125
  • 2
  • 8
0
votes
4 answers

How to upgrade gzip from 1.3.12 to 1.6 on CentOS 6

I want to use gzip -k from now on, but it is only available with newer gzip versions. How can I upgrade it on CentOS 6?
Buttle Butkus
  • 1,741
  • 8
  • 33
  • 45
0
votes
0 answers

IIS 7.5 successfully compresses but sends uncompressed version in response

I have IIS 7.5 setup to use gzip compression on both static and dynamic content. By inspecting the "IIS Temporary Compressed Files" folder, I have verified that it is indeed compressing all of the static MIME types I have defined in my config. I…
0
votes
1 answer

How to echo line out of gzip compressed file?

While importing a mysqldump into a Galera cluster get an error message refering to duplicate error, referencing a line. How do I echo out the particilar line in order to check the source table? Import: zcat DB_150909.sql.gz | mysql -u root -p…
merlin
  • 2,093
  • 11
  • 39
  • 78
0
votes
2 answers

Gzip level for pre-compressed files?

I've learned that for gzipping css and js files on the fly, it's best to keep the default level -1. Now I'm serving static pre-compressed gzip files and I wonder if it's better to use a higher level for creating these. Is level -9 ok then? Or should…
Martin
  • 220
  • 3
  • 9
0
votes
0 answers

How to implement gzip compression in such a way that the files compressed path is stored as relative path rather than absolute path?

I am trying to implement gzip compression in my Application server machine but when it is served through the proxy(different machine) to the front end the css files are getting broken due to the mixed content error. CAUSE: mixed-content (Serving…
Geo j
  • 11
  • 2
  • 6
0
votes
1 answer

Serving SVG as GZIP does not cache it in subsequent requests

OS: Ubuntu 14.04 Apache: 2.4.12 (using PPA) - mod_expires, mod_headers I am using GZIP for all SVG files. It works well with the following statement in a configuration file (not .htaccess) AddType image/svg+xml .svg AddOutputFilterByType DEFLATE…
0
votes
0 answers

How do I accomplish Drupal "double gzip" prevention in Nginx?

There is this section of the default .htaccess that Drupal ships with: # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1] I…
Chris
  • 1
0
votes
0 answers

AWS S3 content over VPN is not getting decompressed (gzip)

We have a client who is having difficulty viewing our content over their VPN. If they browse to the content it appears with all crazy characters. I think I have worked out its somthing to do with GZIP, possibly the header is being stripped…
Keeno
  • 611
  • 3
  • 9
  • 18
0
votes
2 answers

Why would internet explorer conflict with lighttpd/mod_compress?

We've been running lighttpd on our image servers for quite some time, but in an effort to speed up page load times, we've been working toward using mod_compress and etags to speed things up. I've added the following lines to the…
pivotal
0
votes
0 answers

YSLow says certain CSS are not gzipped

YSlow keeps on telling me files like http://www.example.com/wp-content/plugins/q-and-a/css/q-a-plus.css?ver=1.0.6.2 are not gzipped while the gzip test tool at Feed the Bot mentions I am all good: Compressed? Yes Compression type gzip Page size…
rhand
  • 264
  • 2
  • 5
  • 23
0
votes
1 answer

Piping stream into tar on FreeBSD

I am trying to pipe a tar/gzip archive into tar to decompress it. The script I have is part of a self extracting installer, where my archive is appended to the script. This works fine on linux, and the script looks like this: export TMPDIR=`mktemp…
Casey Jordan
  • 215
  • 4
  • 11
0
votes
1 answer

Unable to Unzip a tar.gz.bz2

We run daily backups of our MySQL server. Using the following script: [ ! -d "${DEST}" ] && mkdir -p "${DEST}" FILE=${DEST}/mysql-live.${NOW}-$(date +"%T").tar.gz.bz2 # get around error mysqldump --single-transaction -u $MUSER -h $MHOST -p$MPASS…
Joseph
  • 293
  • 2
  • 7
  • 14