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
2
votes
2 answers

Http gzip compression and performance

I've always tried to enable gzip compression on web servers because it seemed to have very low CPU cost and you obtain a significant data transfer reduction. Now I we have a public server that has not gzip enabled and sometimes it's CPU load is…
Marc Climent
  • 277
  • 7
  • 14
2
votes
2 answers

Is there any way to detect an incoming ZipBomb?

I'm building an ASP.NET application deployed to IIS and I am actively working on following the necessary steps to enable support for Content-Encoding: gzip There are no current plans for the server I'm working to be deployed to the public web, but…
K. Alan Bates
  • 223
  • 2
  • 12
2
votes
2 answers

Backup and Restore Using dd and gzip

I've seen various posts discussing the use of dd for creating an image of a drive and only storing 'used data'. Before posing the problem/question, let's assume a few things. Assumptions The drive to clone/image is /dev/sda /dev/sda is 10TBs Used…
2
votes
0 answers

iis doesnt compress content only for requests containing "/gecko/" in user-agent

Very weird behavior. My server returns gzipped response for all other requests. in the images you could see that for user agent "/gecko/" the request is not gzipped and for "/gescko/" it is. i'm using the iis 7.5. The content returned is dynamic,…
2
votes
4 answers

Enabling Brotli compression on IIS

My team us currently trying to install Brotli compression on a VPS: Windows Server 2012 R2 with IIS8.5 using the 64bit module that can be downloaded here: https://www.iispeed.com/pagespeed/products/iisbrotli But whatever we try, when I fill out the…
Adam
  • 247
  • 3
  • 4
  • 16
2
votes
3 answers

Nginx Gzip Not Working

As the title said, Nginx Gzip is not working, I have tried many configurations scattered on the internet none have worked, I'm really frustrated when simple things don't work. gzip.conf: gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied…
John Pangilinan
  • 131
  • 1
  • 1
  • 7
2
votes
2 answers

Is there such thing as unzip cache?

On my server I have the script that runs (using a cronjob) every midnight and downloads a zip which contains a csv file from an url. The csv file is updated daily. Following is my (simple) script: #!/usr/bin/env bash rm -f…
sica07
  • 105
  • 1
  • 10
2
votes
1 answer

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 deliver the best suited version. This way we can save…
firex
  • 73
  • 5
2
votes
0 answers

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 the URL?
Slava
  • 201
  • 3
  • 12
2
votes
1 answer

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 and two servers running HHVM, all using Nginx. I…
Null
  • 31
  • 1
  • 4
2
votes
1 answer

nginx cache gzip file's to temp directory?

Is the following possible through Nginx: I now have gzip on; but the server needs to compress the popular files everytime, the files are xml files created through a database, but they are "static". I know I can set gzip_static on; but there are…
klaasio
  • 79
  • 5
2
votes
1 answer

Compress all apache log files which don't have any symlink pointing to them

I'm using cronolog to let the apache log files rotate. I'm using fail2ban to monitor those log files and ban in case of abuse. There's always an access.log symlink which is created by cronolog and points to the current log file. Each night, I run a…
Fox
  • 992
  • 2
  • 14
  • 23
2
votes
1 answer

Nginx and HttpGzipStaticModule

I have an nginx instance built with the gzip_static module nginx version: nginx/1.2.6 built by gcc 3.4.6 20060404 (Red Hat 3.4.6-11) TLS SNI support disabled configure arguments: --prefix=/home/nginx --user=nginx --group=nginx…
Jared Bond
  • 96
  • 4
2
votes
0 answers

Cherokee force gzip compression for HTTP/1.0

I am using CloudFront with a Cherokee origin server for static files. Cherokee serves gzipped content for direct browser requests without any problem. But when CloudFront requests content, Cherokee serves it uncompressed because CloudFront is…
akkishore
  • 121
  • 2
2
votes
0 answers

large javascript file not being served properly by nginx

I'm having trouble serving a large (376kb) javascript file via nginx over ssl with gzip enabled. The file is served without issue over plain old http. The file in question is ckeditor.js and is located at…