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

-2
votes
1answer
33 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
15 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
0answers
20 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
21 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
97 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
35 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 { ...
2
votes
1answer
46 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
21 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
14 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
42 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
62 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
85 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
44 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
65 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
57 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
94 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
46 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
179 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
183 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
57 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
424 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
257 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
140 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
83 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
213 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
72 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
68 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 ...
0
votes
0answers
56 views

Nginx cache gziped results on reverse proxy

I have been trying to figure out how I could set my reverse proxy to cache gziped results. What I am trying to achieve is following: Client requests for JS/css -> Reverse proxy requests it from ...
-1
votes
1answer
214 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
179 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
181 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
203 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
341 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
614 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
206 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
963 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
257 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
266 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
931 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
532 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
2k 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 ...
0
votes
1answer
1k views

How to ideally store images on Amazon S3

I want to store a huge number of images on Amazon S3 (served via Cloudfront). Currently the way I am doing is simply dumping the images and having basic HTTP Cache headers set to a month so that users ...
1
vote
2answers
135 views

Rolling log file without losing any log event

I have an 8GB file called php.log with a running php script logging into it. It is important for me that I log every event, and I want to compress it and empty the current file without stopping the ...
0
votes
1answer
318 views

Linux cp with gzip and numbered backup in one step?

I'm wanting to copy a file and gzip it in a single command/step But I want to do numbered backup if the file already exists i.e. "cp --backup=numbered" or similar. The reason for the single step is ...
2
votes
2answers
4k views

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

Files sometimes fail to be retrieved from apache server

So, I'm not sure what the problem here is but I suspect it might be the server. So here's some key details Amazon EC2 servers (All in the same region and zone) Ubuntu 12.04 server Apache2 with gzip ...
0
votes
1answer
1k views

IIS 7.5 inconsistently Gzips files (with PHP & ASP.NET)

I made some changes to the web.config of a server running IIS 7.5 improve the performance (mostly front-end). A 3rd party testing tool says the site is running "PHP/5.3.10, ASP.NET" and if memory ...