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

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 again. Is there some parameter that allows my tar…
amandanovaes
  • 143
  • 1
  • 5
0
votes
1 answer

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 that I'm copying a log file (which can be large) to…
hookenz
  • 14,472
  • 23
  • 88
  • 143
0
votes
1 answer

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 compression on all the relevant file…
user1561753
  • 69
  • 1
  • 6
0
votes
1 answer

Apache / Nginx / Varnish - GZIP does not work on css, js

My current setup is as following: Apache -> Nginx -> Varnish running on Ubuntu apache2.conf: h**p://pastebin.com/A3wehAbe .htaccess: h**p://pastebin.com/Yre4hdSy (edited to allow deflate) nginx.conf: h**p://pastebin.com/6X59CTAr (gzip…
ALAN VO
  • 19
  • 3
0
votes
2 answers

Gzip and Javascript Minification

I have a Rails app using the Rails javascript helpers to concat all the javascript together into a single file. In addition my web server is serving this javascript file to the end users as gzip compressed. As modern browsers will request the…
davidsmalley
  • 457
  • 1
  • 6
  • 14
0
votes
0 answers

Enable gzip for source maps

I'm using the Grunt plugins to concat, minify and generate source maps of my Javascript before I push it to the production server (I'll soon be doing the same with SASS for CSS). The source maps generated are plain text but with an file 'extension'…
adam-asdf
  • 191
  • 1
  • 11
0
votes
0 answers

nginx: access_log both compressed and uncompressed

In my "vhost" declaration I have: access_log /WEBSITE_DIR/logs/access.log.gz combined gzip; Problem is I get 2 files, an access.log.gz and an access.log Why? I want just the .log.gz one..
MultiformeIngegno
  • 1,687
  • 9
  • 26
  • 31
0
votes
1 answer

find directories in the current directory, older than 5 days and archive them

This is basic questions. I need to find folders in the current working directory(not recursively) and if they are older than 5 days archive them. zip or tar.gz is fine. I can find the folders with following commands find ./ -maxdepth 1 -type d…
Abdul
  • 85
  • 1
  • 2
  • 9
0
votes
1 answer

Compress with Gzip or Deflate my CSS & JS files

i ve a fashion website & using wordpress. I want to Compress or Gzip or Deflate my CSS & JS files. i have tried many codes with .htaccess to compress but not working. Would any body help me please? My phpinfo is…
muhammad usman
  • 103
  • 1
  • 1
  • 3
0
votes
1 answer

Tomcat6 Decompressing GZip Request

Since Tomcat has the option to compress its response to GZip. Is there a way to configure Tomcat 6 to decompress gzipped requests without putting it behind an Apache server with mod_deflate enabled, or creating a GZip filter on the application…
Hadi Salem
  • 303
  • 1
  • 2
  • 5
0
votes
1 answer

gzip compression with nginx - Not being reported correctly in tests?

nginx 1.4.2 Google Pagespeed Insights (web version) is reporting that I should compress a number of .js files on my site. I've checked the mime.types config file and it includes the default application/x-javascript js; directive. I've…
steveharman
  • 3
  • 1
  • 2
0
votes
1 answer

Nginx x-accel stripping Content-Encoding header

I have my Nginx server setup allow requests to be served with the X-Accel-Redirect header. This works fine for images, but I'm trying to get it to work for Javascript files that are already gzip'ed on the disk and it appears Nginx is stripping off…
Danack
  • 1,216
  • 1
  • 16
  • 27
0
votes
1 answer

mod_deflate is working but send wrong headers

I'm using mod_deflate to server gzip content for js and css files. Using curl I can see that it works and I can see the code but Chrome still thinks it's gzip content and NOT stylesheets/javascript so it won't render them. Chrome says: Resource…
Tommy B.
  • 1,413
  • 2
  • 14
  • 14
0
votes
1 answer

Apache gzip compression

I have an inherited Apache 2.2.17 server running on Ubuntu that I need to enable compression on. I have ensured the mod is loaded: apachectl -t -D DUMP_MODULES Loaded Modules: ... deflate_module (shared) headers_module (shared) setenvif_module…
Naozumi
  • 138
  • 9
0
votes
2 answers

Linux Find and Zip Files

I'm running into 2 problems when working with my logs and the find command. I am having problems with the mtime option. The 1st command below shows me a few files from March 5th till March 7th, like I believe it should. However, when I add +1 to…
Eric
  • 1,383
  • 3
  • 17
  • 34