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

`mod_deflate` is returning `Content-Encoding: gzip`. Is that normal?

mod_deflate is configured on my Apache 2.2 web server. But my response headers are showing gzip as the Content-Encoding instead of deflate: HTTP/1.1 200 OK Date: Mon, 26 Sep 2011 22:26:11 GMT Server: Apache Last-Modified: Mon, 26 Sep 2011 11:32:54…
Mike M. Lin
  • 901
  • 1
  • 7
  • 8
1
vote
3 answers

PHP content-length header not specifying size for my forced download

I am trying to allow our users to be able to download a zip file using a php force download. I was having trouble getting the download to finish and it turned out the zip file was getting gzipped and sent to the browser, then the content-length…
Brian
  • 73
  • 2
  • 8
1
vote
2 answers

Is it possible to store MySQL data as comressed?

Is it possible to store MySQL data compressed? Option for that in MySQL?
ilhan
  • 288
  • 5
  • 15
1
vote
1 answer

Gzip Compression IIS7 with Proxy Not working

I have seen posts with GZIP compression not working on IIS7, but none seemed to help in my case. I have a proxy server that sends the request to my website on IIS7. I have the following in web.config to enable compression:
Praveen Nayak
1
vote
1 answer

gzipped tar archive file paths

I am creating a tar.gz file containing some files and folders as follows: /bin/tar cfz /usr/local/backups/mybackup-${DATENAME}.tar.gz /usr/local/backups/db-${DATENAME}.sql.gz …
TheVillageIdiot
  • 161
  • 1
  • 9
1
vote
1 answer

making apache serve unzipped content from zipped files

I need to serve a bunch of gzipped MIDI files from an Apache server. The catch is that when the user requests them, the response should come back with a "audio/midi" content-type header and not a gzip file or multipart header. In other words, Im…
udit
  • 111
  • 1
1
vote
1 answer

How to get Apache (on Debian squeeze) to compress JS/CSS

I am running Debian squeeze and cannot get Apache to compress JavaScript or CSS. HTML, however, is being compressed. In the conf files in the sites-enabled dir, I've got the following: SetOutputFilter…
ryonlife
  • 491
  • 1
  • 4
  • 8
1
vote
2 answers

Apache isn't deflating my website home page

I have the following 3 rules at /.htaccess AddOutputFilterByType DEFLATE text/html text/plain text/css application/json AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript AddOutputFilterByType DEFLATE…
João Dias
  • 41
  • 6
1
vote
3 answers

Help me enable gzip compression on nginx

Here's the gzip section from my current nginx.conf: gzip on; gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types text/plain text/html text/css application/json application/x-javascript text/xml; gzip_buffers 16…
tex
  • 113
  • 1
  • 6
1
vote
3 answers

View rotated log files Mac OS X Server (*.?.gz)

Trying to look at some of our older log files and find they're cryptic "Unix Executable Files". This particular server I'm working with is an older Mac OS X Server (10.4 - Tiger). -rw-r----- 1 root admin 36 1 Jun 15:48 wtmp -rw-r--r-- …
Meltemi
  • 579
  • 2
  • 11
  • 24
1
vote
1 answer

Why Can't I Pre-Zip Server Files?

It's just good common sense to have your server gzip your files before they send them to users (I use Nginx) Is there anyway to save the server some overhead and pre-zip those files for the server, and if not why? For instance rather than giving…
Schneems
  • 187
  • 3
  • 12
1
vote
8 answers

Compressing and copying large files on Windows Server?

I've been having a hard time copying large database backups from the database server to a test box at another site. I'm open to any ideas that would help me get this database moved without having to resort to a USB hard drive and the mail. The…
Aaron
  • 159
  • 1
  • 1
  • 7
1
vote
1 answer

Normalize Accept-Encoding via HAProxy for optimized Squid hit rate

Our website infrastructure uses HAProxy for load balancing, a Squid cluster for caching, and application data is on an IIS cluster. We load balance HAProxy by URI to optimize the Squid hit-rate, but we know that Squid is holding different copies of…
Matt Beckman
  • 1,502
  • 18
  • 33
1
vote
2 answers

Nginx performance issues

I made a website using React and connected to Strapi. But I need to keep some background videos mainly on the home page. The main banner has 4 videos and the background of the page is also a video. The site was very heavy and overloaded, but the…
1
vote
0 answers

browser-nginx compression priority

Nginx with enabled both brotli and gzip compressions replies: curl -s -I -H 'Accept-Encoding: br,gzip,deflate' https://something content-encoding: gzip curl -s -I -H 'Accept-Encoding: br' https://something content-encoding: br any chance to set a…
MoonChild
  • 11
  • 1