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

Erratic gzip compression on IIS7.5

This is best demonstrated when we just try to request a single CSS file from our IIS server. Sometimes we get the whole uncompressed file back. We'll wait 5 seconds and refresh, then the CSS file is gzipped, 1/5 the original size (which is what we…
realworldcoder
  • 281
  • 1
  • 3
  • 15
3
votes
2 answers

How can I disable gzip in apache on Ubuntu 10.10?

I'm trying to figure out how to disable or uninstall gzip from my Ubuntu server. This is to support a package of buggy software that breaks when it's trying to do a crazy call to a css file (don't ask, the code architecture is horrifying). The…
Lynn
  • 299
  • 6
  • 16
3
votes
4 answers

Getting HTTP Compression (GZip) to work with URL Routing on IIS 6

I haven't seen any questions specifically addressing this specific issue. When URL Routing is used, The Request goes into IIS and then is routed to the Aspx Page. For example, a site: www.site.com/products may route the request to…
Armstrongest
  • 189
  • 1
  • 4
  • 9
3
votes
2 answers

Backup file format that enables easy access of specific files?

I need to upgrade a Server and there have to make a compressed backup of a lot of directories. The question is: Which format should I use? tar.gz, cpio? Both compression and decompression processes should be fast. In case I have some corruption on…
Philip
  • 203
  • 1
  • 4
3
votes
2 answers

gzip js on apache

the following configuration in httpd.conf only gzip css and html, not javascript, any idea? AddOutputFilterByType DEFLATE text/html text/plain text/javascript text/css AddOutputFilterByType DEFLATE application/x-javascript
user12145
  • 1,115
  • 6
  • 28
  • 47
3
votes
2 answers

Apache - How to disable gzip content encoding (eg DEFLATE) for one set of URLs?

I have a ubuntu apache webserver and I have enabled mod_deflate to gzip all the content. However there's one folder I'd like to disable the mod_deflate for. I was going to do something like this: RemoveOutputFilter…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
3
votes
2 answers

enabled gzip -- running out of threads

I enabled gzip in apache2 and started load testing -- I am seeing a lot of keep alives state busy state -- 95% of the web server worker threads are being used at any given time While CPU is ok, I am assuming the issue is that the compression is…
bushman
2
votes
1 answer

Nginx Gzip not compressing JSON

I have tried various settings available for Nginx.conf, none of them are working for me. Below id my current config, gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 9; …
Vipul
  • 21
  • 2
2
votes
1 answer

How to compress SQL file correctly on CentOS?

I have a database whose size is roughly 3.1 Gb according to PhpMyAdmin. I would like to dump and compress it with gzip. This is a very similar answer to what I'm trying to do: https://serverfault.com/a/804273/326635 Here is my command: mysqldump…
Mcload
  • 133
  • 1
  • 1
  • 5
2
votes
1 answer

Enabled brotli mod in apache but still wordpress not using brotli

I have installed brotli on my apache server. The problem is Wordpress is not using brotli compression. It uses gzip only. I have turned off zlib.output_compression, disabled cdn and WP-Rocket but still its using gzip and not brotli. I have even…
Rahul Biswas
  • 139
  • 1
  • 1
  • 14
2
votes
0 answers

Streaming proxied responses with gzip on nginx

I have an nginx reverse proxy in front of a node.js backend server. In my node app, I am able to stream responses as they become ready, so that the client can start downloading resources referenced in the section of the HTML before the entire…
Dominic P
  • 457
  • 1
  • 4
  • 18
2
votes
2 answers

IIS Compression: Enable GZIP and DEFLATE using Powershell

How does one do the following things with IIS 5.1/6.0 using PowerShell: Enable HTTP Compression Set GZIP and DEFLATE file extensions Enable Dynamic and Static compression for GZIP and DEFLATE Set the compression lvl Any pointers to tutorials on…
brad
  • 283
  • 2
  • 7
2
votes
0 answers

Nginx not compressing response of HTTP POST?

I have Nginx setup as a reverse proxy between the world and my app, and it's successfully gzipping the proxied responses of GET requests with this general config: gzip on; gzip_min_length 0; gzip_proxied any; gzip_buffers 16 8k; gzip_types…
Josh Z
  • 21
  • 1
2
votes
1 answer

Is it worth it to have gzip_static enabled with HTTP/2?

On a static website I precompress pages to .gz files with maximal compression level and serve them using gzip_static on;. I also have HTTP/2 enabled. My question is whether these things go well together, because I see mostly HTTP/1.1 requests in the…
Harmen
  • 167
  • 8
2
votes
1 answer

IIS6 not doing gzip compression when including Via header in request

I have some static content going through a CDN. I am using IIS6's built in compression (gzip & deflate) for static content and this is working fine when I request it. However, when the CDN makes the initial request for the content, it is not being…
Matt Lacey
  • 143
  • 2
  • 8