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.

Filter by
Sorted by
Tagged with
1
vote
0answers
187 views

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; ...
1
vote
2answers
2k views

Nginx not sending gzipped assets when passing trough a load balancer

I have a nginx server acting as load balancer, which delegates requests to other application servers. When I try to request a asset directly to the application server, the asset is served in it's ...
39
votes
3answers
41k views

Fastest way to extract tar.gz

Is there anyway to extract a tar.gz file faster than tar -zxvf filenamehere? We have large files, and trying to optimize the operation.
2
votes
1answer
1k views

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 ...
1
vote
1answer
3k views

gzip not working on nginx for JSON responses

I'm trying to figure out why my JSON responses are not being gzip'ed. In my main ngninx.conf, I have: gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version ...
1
vote
1answer
946 views

Tomcat/https: I can see compression is enabled, but file sizes are the same as without compression

I have enabled compression on Tomcat running on my machine. The https response header is showing compression is enabled, but the same amount of data is being transferred with and without compression ...
3
votes
5answers
1k views

`outputscript | gzip > $file` not overwriting $file

I have an hourly cron script which take some output (a mysql dump), pipes it through gzip, and aims to overwrite a file of the same name. When I run it manually as root the file is overwritten. When ...
9
votes
2answers
17k views

How can I enable GZIP compression in Jetty?

I have a Jetty server which does not have compression enabled (I tested this here). How can I enable compression?
0
votes
1answer
412 views

Disable brotli compression for single nginx vhost

I have a handful of websites on a single server, setup using https://serverpilot.io/ It enables brotli compression for all sites by default but I would like to disable this on a single site that sits ...
7
votes
5answers
10k views

How to gzip logs created by rotatelogs

I'm using rotatelogs to create my daily apache logs in format host.<day>.<month>.<year>.access.log. Now I want to gzip and move log to different directory after it's been finished. ...
2
votes
1answer
718 views

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 ...
88
votes
8answers
128k views

mysqldump to a tar.gz

Usually after dumping a MySQL database with mysqldump command I immediately tar/gzip the resultant file. I'm looking for a way to do this in one command: So from this: mysqldump dbname -u root -p &...
2
votes
1answer
871 views

Apache returns invalid Content-Length for gzip compressed 204 response

When apache returns a gzip compressed response with 204 response code and empty body server returns invalid header Content-Length: 20 instead of Content-Length: 0. Without gzip compression (without ...
1
vote
0answers
144 views

AWS beanstalk: Why settings reset when beanstalk servers are restarted, however WAR deployement work fine with the changes

After lots of struggles, I identified how to enable gzip compression on my aws beanstalk Java-tomcat environment In war file I have instructions to overwrite this file which have few added file types ...
3
votes
5answers
237 views

Zipping a folder to create tgz file

I have a folder which i want to create tgz file and compute its sha256: The folder is converted to tgz using following command "tar -c -C #{Shellwords.escape dir} #{Shellwords.escape basename} " \ ...
3
votes
2answers
6k views

What is the best way to compress backend to nginx reverse proxy data?

We are going to be running a nginx reverse proxy that will pull data from a backend via the internet. What we mean by via the internet is the backend machine will not be on a lan with the front ...
0
votes
1answer
505 views

Chrome HTTP2 requests do not finish for large gzipped files (Apache)

I recently upgraded Aapche to 2.4.26 (ondrej ppa) on Ubuntu 16.04. By default, modules deflate and http2 are enabled. On Chrome, when serving large JS files, the request simply does not finish and ...
15
votes
3answers
12k views

How to list content from a tar file without recursion?

I've a tar (gz, bzip) file and want to see its content, but not recursively. This is: The "first level" in the file. I already know how to see content: tar -ztf file.tar.gz But it's recursive!! ...
0
votes
2answers
422 views

Apache Webserver: check if decompression is supported

With SetInputFilter DEFLATE I can force the apache to decompress incoming messages. Is there a way to ask the webserver whether it supports decompression of incoming requests. I would expect a ...
2
votes
2answers
259 views

Is there any way to detect an incoming ZipBomb?

I'm building an ASP.NET application deployed to IIS and I am actively working on following the necessary steps to enable support for Content-Encoding: gzip There are no current plans for the server ...
0
votes
1answer
461 views

memory use during MySQL gzip backups

Hi on an EC2 server I'm using the following to gzip SQL from another server: mysqldump -h $HOST -u $UNAME -p$PWORD --single-transaction $1 | gzip -5 > $2_`date +%d`.sql.gz At the moment the SQL ...
0
votes
3answers
2k views

How to split a large .tar.gz on a Windows machine to upload on a Linux server?

I downloaded a rather large (6GB) backup file from a cloud Linux server about a week ago before it went down to my Windows laptop. We just got ourselves a new cloud server just now and the decision ...
0
votes
4answers
2k views

How to upgrade gzip from 1.3.12 to 1.6 on CentOS 6

I want to use gzip -k from now on, but it is only available with newer gzip versions. How can I upgrade it on CentOS 6?
1
vote
1answer
183 views

GZip on IIS6.0 - Some sites work, others don't?

I have a 2k3 server setup running iis6.0 and I've just enabled gzip compression successfully - for the most part. Most sites (eg: clickhips.co.uk) are coming up in YSlow as being compressed fine ...
1
vote
2answers
2k views

Backup and Restore Using dd and gzip

I've seen various posts discussing the use of dd for creating an image of a drive and only storing 'used data'. Before posing the problem/question, let's assume a few things. Assumptions The drive ...
2
votes
0answers
89 views

iis doesnt compress content only for requests containing “/gecko/” in user-agent

Very weird behavior. My server returns gzipped response for all other requests. in the images you could see that for user agent "/gecko/" the request is not gzipped and for "/gescko/" it is. i'm ...
5
votes
2answers
2k views

nginx gzip Vary header together with existing Vary headers

I'm trying to active gzip compression and I have set the option gzip_vary on; to include the Vary: Accept-Encoding header. The problem is, my application is already seting a Vary: header. So the ...
1
vote
4answers
3k views

mysqldump to remote mysql database using gzip

I'm trying to transfer data from one MySQL server to another with gzip compression. What I have so far is: mysqldump -u [user] -p[pwd] --no-create-db --no-create-info [db] [table] | gzip -c | mysql -...
0
votes
2answers
539 views

Large mysql dump pipe to s3

Is there any problem in doing this with lots of data? mysqldump ... | gzip | s3cmd put - s3://bucket/file.sql.gz The MySQL dump is about 100GB in size. What happens if gzip or s3cmd can't process ...
15
votes
1answer
9k views

How do I serve pre-gzipped files with nginx so that they'll be shown as text in the browser?

I have a bunch of gzipped log files I'd like to serve with nginx. I want them to be served in such a way that they're automatically inflated by the browser. I assume that means I need nginx to send ...
1
vote
2answers
659 views

Glassfish - Font file and stylesheets and gzip

We used to use Tomcat but are migrating to Glassfish 4 for our application server. We are trying to enable compression, but for some reason, when we do, woff and ttf files are aborted. No errors, ...
5
votes
1answer
9k views

Forcing Nginx to send Content-Length headers when serving static files with gzip

We're running Nginx 0.7.65[-1ubuntu2.3]. I've just noticed that when serving local static files using an alias directive and gzip on, the Content-Length header is not getting sent. Since it's serving ...
1
vote
0answers
92 views

Apache 2.4.23: gzip for HTTP 503

Can Apache be instructed to gzip the contents of an HTTP 503 response? A page of a website that I manage needs to be temporarily removed. Not only does HTTP 503 aptly describe the situation but it ...
1
vote
8answers
10k views

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 ...
0
votes
0answers
224 views

Why is nginx gziping tar.gz archives?

I have the following gzip configuration at the nginx.conf file: gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; ...
0
votes
1answer
75 views

Testing gzip for users accessing website via forward proxy

An app of mine has nginx as a webserver, and I'm using gzip compression. I've checked gzip integrity via https://checkgzipcompression.com/ - it seems to be working A OK. However, a lot of my users ...
1
vote
1answer
587 views

Is it possible to copress the cached files of nginx fastcgi_cache

Is is possible to compress/gzip the cached files managed via nginx fastcgi_cache? I am thinking of saving two versions of cached files (normal & compressed) and use appropriate key structure to ...
2
votes
1answer
299 views

Compress all apache log files which don't have any symlink pointing to them

I'm using cronolog to let the apache log files rotate. I'm using fail2ban to monitor those log files and ban in case of abuse. There's always an access.log symlink which is created by cronolog and ...
2
votes
1answer
1k views

Apache deflate ignores javascript

I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with ...
1
vote
2answers
194 views

Is there such thing as unzip cache?

On my server I have the script that runs (using a cronjob) every midnight and downloads a zip which contains a csv file from an url. The csv file is updated daily. Following is my (simple) script: #!/...
0
votes
1answer
498 views

how to stop esxtop gracefully which is running in batch mode?

I am running esxtop in batch mode using the below command: esxtop –b –a –d 10 –n 2000| gzip -9c > perfData.csv.gz This is going to run for a little over 5 hrs, but I want to stop it gracefully ...
1
vote
1answer
759 views

gzip piped output into ssh command

I make backup over ssh like this: mysqldump -u dbuser -pXXXXXXXX dbname | ssh -i ~/.ssh/id_rsa_backup backup@my.server.com 'cat > /var/backups/services/my_service/db/$(date +"%Y-%m-%d").sql' How ...
0
votes
0answers
465 views

gzip: FILE is a multi-part gzip file — not supported

I am trying to restore some deleted files from one server. Using several tools for raw disk scan, I found lots of files - gz, gif, jpg etc. I also found some multi-part gzip files that I do not know ...
5
votes
4answers
8k views

How to manually extract a backup set made by duplicity?

I have a set of files on my webserver produced by duplicity software: duplicity-full.20110315T085334Z.vol1.difftar.gz duplicity-full.20110315T085334Z.vol2.difftar.gz duplicity-full.20110315T085334Z....
4
votes
2answers
1k views

nginx : enabling gzip compression based on hostname

I have a single machine running nginx serving http traffic for multiple domains(using same Lua codebase). For some of the domains I would like to enable gzip compression. Is it possible to enable gzip ...
0
votes
0answers
140 views

How do you git archive a branch using gzip with highest compression level?

I'm trying to git archive a branch using gzip with the highest level compression (9) but it seems to not compress at that level. Here is my command: git -C /home/user/example.com/ archive --format ...
5
votes
3answers
2k views

Incorrect gzipping of http requests, can't find who's doing it

We're seeing some very strange mangling of HTTP responses, and we can't figure out what is doing it. We have an app server handling JSON requests. Occasionally, the response is returned gzipped, but ...
0
votes
1answer
156 views

same javascript file, but different file size depends on a server?

I have a weird problem. I have two exact website on two servers - dev and qa. The dev one shows that my javascript size is 100kb, but the qa says 400kb. When I save the script on my local, it is ...
1
vote
1answer
5k views

how to get nginx to gzip all files and add an expires header

recently got into VPS systems and installing them, and all that blah blah etc etc. So, I have a couple working websites, and on one of them I'm trying to really optimize it for speed. Using Yahoo's ...
0
votes
1answer
621 views

Nginx: Conditional request gunzip when `Content-Encoding: gzip` is set

How would it be possible in nginx to evaluate if the Content-Encoding: gzip request header is set (coming from a web client to nginx), and then let nginx gunzip the request before it gets forwarded to ...