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

Enable Brotli for Apache on Google Cloud Compute Engine website

I installed and enabled the Brotli module just fine through SSH. Then, I added this to my port 80 VirtualHost config: SetOutputFilter BROTLI_COMPRESS SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-brotli …
1
vote
1 answer

How can I remove an accept-encoding request header in nginx?

The recent update to zlib due to a security hole appears to cause a major problem when serving PHP-FPM 8.0 via nginx on Ubuntu focal. Any requests with a gzip encoding fail right at the start of the response, though nginx logs the requests as…
Synchro
  • 3,148
  • 6
  • 27
  • 38
1
vote
1 answer

Download file from Artifact Registry (Maven)

I have been playing with REST API for Artifact Registry. I can find the URL for .zip files I would like to download, but I only get JSON responses. Is it possible to download individual artifact files from the Artifact Registry with Maven…
Henrik Ormåsen
  • 233
  • 2
  • 15
1
vote
2 answers

Data is truncating when sent in Gzipped format

I am sending gzipped data from the client to the Apache server and getting it inflated at the Apache layer (Using https://httpd.apache.org/docs/2.4/mod/mod_deflate.html#input). The data is then sent from Apache to Tomcat, however, at Tomcat I am…
Himanshu
  • 11
  • 4
1
vote
3 answers

Can Apache 2 be configured to start sending gzipped data early?

We have Apache set up to gzip compress html pages before they are sent to the client browser. However, some of our pages are slowish to generate and it seems that Apache is holding on until it has the complete page, compressing it, then sending it…
Rik Heywood
  • 269
  • 1
  • 2
  • 6
0
votes
2 answers

nginx gzip compression results in larger file sizes

I'm trying to enable compression for a SPA application that is 99% JS and CSS. Here is the nginx config that I'm using: (I have commented out some settings while testing, but even if enabled do not improve the situation.) gzip on; # gzip_disable…
Hristo Kolev
  • 440
  • 1
  • 6
  • 16
0
votes
1 answer

Nginx compressing 5B data to 1.03 KB how to discard this compression?

I have used gzip compression in my Nginx with compression level 9. Then I can see 5B data is compressed to 1KB? Could not know the reason and how to avoid to discard compress for less than 10B ? Firefox Origianl and Compressed size ration
0
votes
1 answer

How to exclude a folder by name recursively when making a tar archive?

I know it is possible to exclude a particular folder by a command like this: tar --exclude='/srv/www/project/node_modules' -zcvf /backup/project.tgz . My question how to exclude all folders named node_modules within the entire /srv/www?
W.M.
  • 204
  • 1
  • 2
  • 8
0
votes
1 answer

nginx - combine js files, cache and serve gzipped

I'm using nginx to serve static files. I have several js files and different client require different combination of the available files. Is it possible that nginx will combine the files in the request in the first time and then on subsequent…
pablo
0
votes
1 answer

Apache output compression working for CSS/JS but not PHP

I have this in my .htaccess: SetOutputFilter DEFLATE Testing files on my site, it seems that *.js and *.css files are being compressed fine. However,…
DisgruntledGoat
  • 2,629
  • 4
  • 28
  • 36
0
votes
1 answer

Use of gzip with multiple, sequential nginx proxies

Consider the following server setup on a network: In this example, both of the proxy servers are Nginx servers. If the aim is to reduce load time for the client, should compression be used by the Nginx servers (using the gzip directive) at point A,…
Stringers
  • 39
  • 1
  • 2
  • 8
0
votes
0 answers

nginx gzip not working for ssi

I tried setting up gzip compression for server side included files in nginx. I have enabled gzip compression in nginx.conf This is the configuration that I have used: gzip on; gzip_vary on; gzip_disable "msie6"; gzip_proxied any; gzip_comp_level…
KSB
  • 1
  • 1
0
votes
0 answers

nginx gzip not work in some network

Pictures: In centos7 gzip works In windows10 wifi:name1, gzip does not work In windows10 wifi:name2, gzip works But tomcat 8 gzip works in all places My nginx config: user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid…
0
votes
1 answer

Change nginx gzip compression level based on user agent

I've profiled my site and realized that turning the gzip_comp_level up past 1 for desktop reduces total throughput. But, on mobile, where network speed is the bottleneck and not the server TTFB, setting gzip_comp_level to 4 or higher makes sense. I…
0
votes
2 answers

Apache server causes tar.gz files to download as uncompressed tarballs still named .gz

We are hosting a number of .tar.gz files on our Apache server. When we download these files, the filename of the downloaded file is the same as on the server... something.tar.gz... but the file is actually an uncompressed tarball (as if just a…