Questions tagged [gzip]

GZip/gzip is both the name for a compressed data format and any of several software applications implementing this format. Use this tag for questions about implementing the library on your program.

gzip is the name for the compressed data format used by the eponymous GZip application for compressing and decompressing data.

The format is based on the deflate compressed data format, with the addition of a file metadata header and a CRC32 checksum. It is defined in RFC 1952. It is commonly used to compress HTTP requests and responses, and also often combined with the tar format for archival.

The most known standalone command-line implementation is GNU zip. The format is also implemented by the zlib library, and in this form used in many applications.

GZip on Wikipedia

6057 questions
3
votes
1 answer

nodejs express: compression of response doesn't work

I'm trying to serve compressed views with NodeJS/Express. Even if I configured properly the app, there is no trace of compression. Only static file are compressed. If I access a view in Chrome, I cannot find the field Content-Encoding: gzip. The…
Giovanni Bitliner
  • 2,032
  • 5
  • 31
  • 50
3
votes
1 answer

boost gzip_compressor and gzip_decompressor

I'm using boost's gzip_compressor and 'gzip_decompressor' for compressing some string. I'm compressing string like this string compressedString; { filtering_ostream out; out.push(gzip_compressor(gzip_params(gzip::best_compression))); …
nabroyan
  • 3,225
  • 6
  • 37
  • 56
3
votes
1 answer

howto run a bash compressed script?

There is a way to run compressed bash script with 'arguments' directly on the fly without decompressing it in a file and then running the decompressed file ? for example: i need to execute the setup-mysql gzip compressed script with some given…
Zskdan
  • 799
  • 8
  • 17
3
votes
3 answers

How do I read a gzip file in Ruby 1.8.7 line by line?

When I try and read a gzip file in to Ruby 1.8.7 line-by-line, it only reads the first line of the gzipped file. This does not happen on my testing machine, only on my production server. It may have something to do with zlib or Gzipreader but I am…
Cole Shores
  • 319
  • 1
  • 3
  • 14
3
votes
2 answers

Sending pre-minified/pre-gzipped CSS and JS to the browser

I have automatic way of minify/gzip JS and CSS during deploy on the server. Files are really lite. Now I'm having a problem, browser doesn't read it. I've tried something like this in .htaccess: ForceType…
Wolf87
  • 540
  • 3
  • 11
  • 29
3
votes
3 answers

how to enabled gzip in asp.net?

i want gzip css and js file in website. and use this code in web.config:
shahin ko
  • 253
  • 2
  • 4
  • 13
3
votes
1 answer

Read undecoded data from QNetworkReply

Is it possible to read undecoded data from QNetworkReply? Response is encoded using gzip (Content-Encoding: gzip HTTP header), but when i call readAll() method it returns decoded data. I need raw gzipped data, as it was sent to me. Any ideas?
Mateusz Mazurek
  • 101
  • 1
  • 8
3
votes
5 answers

gzip on a folder without changing the file extension

So I am using amazon to serve a few files. I want to gzip these files before I upload them first I copy templates into a new folder cp -r templates/ templatesGZIP then I GZIP that folder gzip -r templatesGZIP the problem is that this adds .gz to…
Dan
  • 1,295
  • 2
  • 22
  • 46
3
votes
4 answers

How to deal with deflated response by urllib2?

I currently use following code to decompress gzipped response by urllib2: opener = urllib2.build_opener() response = opener.open(req) data = response.read() if response.headers.get('content-encoding', '') == 'gzip': data =…
jack
  • 17,261
  • 37
  • 100
  • 125
3
votes
2 answers

zcat a file, output its contents to another file based on original filename

I'm looking to create a bash/perl script in Linux that will restore .gz files based on filename: _path_to_file.txt.gz _path_to_another_file.conf.gz Where the underscores form the directory structure.. so the two above would…
user2726407
  • 33
  • 1
  • 4
3
votes
0 answers

PageSpeed and YSlow don't recognize gzip

I know this question has been asked several times on stackoverflow, but I couldn't find anything that worked for me in those questions. I have a website hosted by BlueHost, and I am trying to enable gzip compression. Here is (the relevant part of)…
BlackBelt2025
  • 441
  • 1
  • 7
  • 18
3
votes
2 answers

Netty (4.0.4) version compress/decompress string messages error

I want to apply compress/decompress on Netty client/server I use the following code for pipeline in both client and sever: @Override protected void initChannel(SocketChannel ch) throws Exception { ChannelPipeline pipeline =…
Tareq Saleh
  • 33
  • 1
  • 3
3
votes
3 answers

Google cloud storage console Content-Encoding to gzip

I am using Google Cloud Storage console to upload files. I am not using any command line tool. I want to Set the Content-Encoding to gzip (-z option) in Metadata. Please see below screenshot, is value 'z' is correct or not? I have set value 'z' for…
Hrishi
  • 169
  • 3
  • 10
3
votes
1 answer

Moovweb - uncompress gzipped outgoing_response.http content?

I have a Moovweb project and I'm trying to compare the incoming_response.http and outgoing_response.http files in tmp/messages/... folders. The incoming_response.http from the upstream server is saved in plain text, but the outgoing_response.http…
gregorygtseng
  • 851
  • 4
  • 12
3
votes
2 answers

Sitecore MVC - gzip compression error

I'm experiencing a problem when using Sitecore MVC 3 rendering with GZip content compression. I followed the blog post of John West, how to enable MVC in Sitecore. Until now it works perfectly, the pages are rendered. But if I run the page on IIS…
Tamas Molnar
  • 797
  • 2
  • 9
  • 25