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.

learn more… | top users | synonyms

1
vote
2answers
29 views

nginx : enabling gzip compression based on hostname

I have a single machine running nginx serving http traffic for multiple domains(using same Lua codebase). For some of the domains I would like to enable gzip compression. Is it possible to enable gzip ...
0
votes
0answers
9 views

How do you git archive a branch using gzip with highest compression level?

I'm trying to git archive a branch using gzip with the highest level compression (9) but it seems to not compress at that level. Here is my command: git -C /home/user/example.com/ archive --format ...
0
votes
0answers
27 views

PHP Output Buffering - Disable PHP Phar - GZip Compression

I am trying to show echo'd statements as a PHP script is running. I have tried every variant of flushes I can find, I have turned on Output Buffering in my server's PHP settings, tried disabling GZIP ...
0
votes
2answers
109 views

How to zip files with a size limit?

I have a script that zip files from a folder. I want to make sure that the zipped file is not more than 10 MB. If the size is more than 10MB, it should create another ZIP file. Is there any command ...
1
vote
3answers
69 views

mysqldump to remote mysql database using gzip

I'm trying to transfer data from one MySQL server to another with gzip compression. What I have so far is: mysqldump -u [user] -p[pwd] --no-create-db --no-create-info [db] [table] | gzip -c | mysql ...
1
vote
1answer
61 views

Tomcat/https: I can see compression is enabled, but file sizes are the same as without compression

I have enabled compression on Tomcat running on my machine. The https response header is showing compression is enabled, but the same amount of data is being transferred with and without compression ...
0
votes
1answer
31 views

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

What are the downsides of http compression?

I always was aware that http supports gzip compression, but never cared about it. I counted on that the servers and shared hosts I use would have activated it by default (I'm more of a frontend ...
0
votes
1answer
21 views

Is it possible to copress the cached files of nginx fastcgi_cache

Is is possible to compress/gzip the cached files managed via nginx fastcgi_cache? I am thinking of saving two versions of cached files (normal & compressed) and use appropriate key structure to ...
0
votes
1answer
43 views

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 ...
0
votes
0answers
34 views

IIS7 httpCompression dynamicTypes not matching the wildcard *(star) in “application/json*”

The Problem: My goal is to enable gzip compression of responses from IIS for the content-type "application/json*", but when the wildcard * is added instead of an exact string match compression ...
6
votes
2answers
111 views

Error with gunzip during logrotate

I'm using logrotate to rotate my Symfony2 logs on my webserver. Everything works fine, but I wanted the old logs to be sent to me by emails. So, I added some line in my logrotate conf file as you can ...
0
votes
2answers
58 views

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 { ...
3
votes
1answer
69 views

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

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 ...
0
votes
0answers
18 views

How to enable static GZip compression for versioned “/style.css?v=1” resourcess in IIS?

Google PageSpeed reports that files like .css and .js are compressed, but .css?v=1 and .js?v=1 are not. How to enable static compression for files that have a dynamically changing version number in ...
-2
votes
1answer
55 views

./configure doesn't work while installing mod_gzip

I tried to install and enable mod_gzip on apache server and downloaded mod_gzip from http://sourceforge.net/projects/mod-gzip/files/ When i try to install and type ./configure, i get ./configure: No ...
1
vote
1answer
90 views

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 ...
-1
votes
3answers
131 views

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?
0
votes
0answers
55 views

Debugging Ansible's support for compressed database imports?

The documentation for Ansible's mysql_db module says, "Uncompressed SQL files (.sql) as well as bzip2 (.bz2), gzip (.gz) and xz compressed files are supported." However, when I try to import a .gz ...
0
votes
0answers
94 views

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

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? ...
0
votes
2answers
74 views

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 ...
1
vote
1answer
101 views

gzip select directories into separate archives

How would I go about compressing a list of directories into separate archives? I have read solutions that just archive all the directories within a given dir, but there are some I want to skip. ...
0
votes
0answers
55 views

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 ...
1
vote
1answer
311 views

HTTP compression in Apache reverse proxy?

I have an App server where Apache httpd is installed which serves the requests. We have another Proxy machine which redirects the requests to this App Server httpd using proxy pass. When I apply gzip ...
0
votes
1answer
275 views

wget and pipe to tar in the background

I am trying to download a large file which is .tar.gz and (> 2GB) in size. The bash script also does lots of other things, so I want to kick off the download and then continue processing other ...
1
vote
1answer
68 views

turn off gzip encoding for site in varnish config

I am attempting to turn off the gzip encoding for a specific website which is backed by a load balancer in order for some developers to troubleshoot something. I have already adjusted the apache ...
1
vote
1answer
618 views

Safari does not decompress gzip content when Content-Encoding is gzip,gzip

Safari for OSX, iOS, and Windows is having issues decompressing Gzip content on my server after a recent server overhaul. I moved from 1 server with Apache and PHP5-FPM to 3 servers. A load balancer ...
0
votes
1answer
348 views

NGINX gzip_static not working

I have the following conf on nginx: location ~* ^/assets/ { add_header Access-Control-Allow-Headers content-type; add_header Access-Control-Allow-Origin *; add_header Cache-Control ...
2
votes
0answers
205 views

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, traviata" ...
0
votes
1answer
112 views

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

Nginx not displaying CSS, PNG & SVG

I have been looking through the hundreds of questions about this for a couple of hours now, but I haven't been able to find a single one that's the exact same as mine. Up until a week ago, all sites ...
0
votes
0answers
84 views

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] ...
0
votes
0answers
74 views

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 ...
-1
votes
1answer
247 views

Setting a custom value to the DeflateBufferSize results in 500 internal server error

I'm trying to reset the DeflateBufferSize directive like so in my .htaccess file: DeflateBufferSize 1024 SetOutputFilter DEFLATE But the result of each page is then 500 internal server error (this ...
3
votes
1answer
230 views

gzip_ratio not printing in nginx logs

I'm configuring the nginx access_log to output in JSON format to use with other tools. The data I want includes info about the compression. I have gzip on, but the only thing I'm getting for the ...
3
votes
1answer
198 views

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 ...
2
votes
3answers
238 views

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 ...
1
vote
0answers
375 views

apache deflate module not working

it's very strage, i google a problem with no luck at all. i have 2 servers (centos6, apache2.2). apache configuration is totally the same (i sure, apache configured by puppet) my deflate.conf: ...
1
vote
1answer
671 views

JBOSS : http gzip compression not working for application/x-www-form-urlencoded [closed]

Connector settings: <Connector URIencode="UTF-8" protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" ...
1
vote
1answer
244 views

BASH: bz2 to gzip conversion with find

I would like to convert a muliply bzip2 files to gzip format. I achived this with foor loop but I would like to do the same with find: BASH for loop: for i in $(ls -1 *.bz2); do echo "Converting: $i ...
-1
votes
3answers
1k views

How to set apache 2.2 gzip compression level?

I am running Debian and Apache/2.2.22 I have gzip enabled, and I would like to know, what is my compression level and how to change it. I know this can be achieved editing php.ini, but I would like to ...
1
vote
4answers
1k views

Logrotate appends “1” at the end of compressed file

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/ as ...
0
votes
0answers
277 views

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: ...
0
votes
1answer
304 views

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

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 ...
4
votes
2answers
3k views

How to split a file and compress directly?

I've a 100GB file and I want to split into 100 of 1GB file each (by line break) e.g. split --bytes=1024M /path/to/input /path/to/output For the 100 files generated, I want to apply gzip/zip to ...
-2
votes
1answer
608 views

Resume a tar command that was stopped

I am trying to tar a huge directory (with about 600GB) and sometimes my SSH conection drops and I need to execute the tar code again and my linux overwites the previous file beginning all the tar ...
2
votes
1answer
3k views

dd command piped over gzip and ssh faster and faster as dd progresses

I am running the following command to copy a LVM from one host to another: dd if=/dev/vg_1/lv1 conv=noerror,sync bs=4M | gzip | ssh user@ip 'gzip -d | dd of=/dev/vg_2/lv1 bs=4M' To begin with I was ...