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.
334
questions
7
votes
1
answer
13k
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 ...
0
votes
1
answer
1k
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 ...
2
votes
1
answer
2k
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 ...
44
votes
5
answers
25k
views
bzip2 too slow. Multiple cores are avaible
I am running this command:
pg_dumpall | bzip2 > cluster-$(date --iso).sql.bz2
It takes too long. I look at the processes with top. The bzip2 process takes about 95% and postgres 5% of one core. ...
1
vote
0
answers
195
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
5
answers
387
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} " \
...
0
votes
1
answer
1k
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 ...
0
votes
2
answers
966
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 ...
1
vote
2
answers
3k
views
What steps are necessary to enable support for Content-Encoding: gzip POST bodies to an ASP.NET application hosted in IIS 8.5
Sending Accept-Encoding: gzip to my server currently upgrades the server responses with gz compression.
Sending Content-Encoding: gzip POST bodies to my server does not result in my application ...
2
votes
2
answers
2k
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
1
answer
2k
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
3
answers
9k
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
1
answer
631
views
IIS Formal Brotli compression module
Is there any formal extension for IIS to support brotli compression? Previously I saw these two extension but I cannot rely on them for a production server:
https://www.iis.net/downloads/community/...
2
votes
2
answers
9k
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
0
answers
149
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 ...
0
votes
2
answers
1k
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 ...
3
votes
4
answers
12k
views
Enabling Brotli compression on IIS
My team us currently trying to install Brotli compression on a VPS: Windows Server 2012 R2 with IIS8.5 using the 64bit module that can be downloaded here: https://www.iispeed.com/pagespeed/products/...
7
votes
2
answers
4k
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
0
answers
118
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 ...
2
votes
3
answers
19k
views
Nginx Gzip Not Working
As the title said, Nginx Gzip is not working, I have tried many configurations scattered on the internet none have worked, I'm really frustrated when simple things don't work.
gzip.conf:
gzip on;
...
0
votes
0
answers
472
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
1
answer
145
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 ...
3
votes
2
answers
4k
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 ...
0
votes
1
answer
6k
views
Enforcing No Gzip on Nginx
I need to disable gzip in some cases, regardless of client's Accept-* request headers.
My Nginx's conf entry has the following directives:
gzip off;
more_clear_input_headers -t 'text/html' Accept ...
2
votes
2
answers
1k
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:
#!/...
1
vote
2
answers
2k
views
Enable compression for HTTP2 server-pushes on an apache server
If I enable H2 for my apache server and specify a preloaded link header on a HTML Dokument, the server performs a H2 server-push because it parses the Link header -- so far so good.
The problem is ...
0
votes
2
answers
2k
views
Turn on Gzip for combined JS or CSS files without file extension
I'm trying to configure GZip on my nginx server. It works for files with an file-extension.
To make a decision what kind of file is served over the network, Nginx does not analyze the file contents ...
0
votes
1
answer
837
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 ...
3
votes
1
answer
2k
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
1
answer
2k
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 [email protected] 'cat > /var/backups/services/my_service/db/$(date +"%Y-%m-%d").sql'
How ...
0
votes
0
answers
869
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
2
answers
3k
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
0
answers
272
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 ...
33
votes
3
answers
93k
views
How to zip files with a size limit?
I have a script that zip files from a folder. I want to make sure that the zipped file is not more than 10 MB. If the size is more than 10MB, it should create another ZIP file.
Is there any command (...
3
votes
4
answers
6k
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 -...
3
votes
1
answer
2k
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 ...
0
votes
1
answer
125
views
Linux CLI Make a Tar.Gz with Tar.Gz First-level Directories
Currently, I use this command to make tar.gz archives:
sudo tar -zcpvf archive.tar.gz directory1 directory2 directory3
Is there a way to compress multiple archives like above, but instead of ...
-2
votes
1
answer
322
views
What are the downsides of http compression?
I always was aware that http supports gzip compression, but never cared about it. I counted on that the servers and shared hosts I use would have activated it by default (I'm more of a frontend ...
3
votes
2
answers
989
views
Is it possible to compress 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
1
answer
2k
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 ...
6
votes
2
answers
1k
views
Error with gunzip during logrotate
I'm using logrotate to rotate my Symfony2 logs on my webserver.
Everything works fine, but I wanted the old logs to be sent to me by emails.
So, I added some line in my logrotate conf file as you can ...
0
votes
2
answers
3k
views
nginx gzip_static removes Content-Encoding header
My http block defines various gzip rules. Then in where I have pre-comporessed gzip files I’m using the gzip_static module. i.e. something like:
http {
gzip on;
#...
server {
#...
3
votes
1
answer
870
views
phpMyAdmin export, half file compressed?
Okay, I have to admit, that I derped up. I've exported a database from a to-be-reinstalled server and didn't check that file.
Now, that I try to import it, I've discovered something very strange, the ...
0
votes
1
answer
551
views
Compressing and streaming files from a linux server
I have a linux server with a lot of unused files, but it is low on disk space. I'd like to take a copy of the files before deleting them. There is not enough disk space to store the compressed version ...
2
votes
0
answers
118
views
How to enable static GZip compression for versioned "/style.css?v=1" resourcess in IIS?
Google PageSpeed reports that files like .css and .js are compressed, but .css?v=1 and .js?v=1 are not.
How to enable static compression for files that have a dynamically changing version number in ...
-2
votes
1
answer
176
views
./configure doesn't work while installing mod_gzip
I tried to install and enable mod_gzip on apache server and downloaded mod_gzip from http://sourceforge.net/projects/mod-gzip/files/
When i try to install and type ./configure, i get ./configure: No ...
1
vote
1
answer
469
views
Can't get included CSS and JS files to be compressed
I have enabled compression via .htaccess and in httpd.conf
However when I run it through the various online testers, its always saying that various included files are not compressed. Apache version ...
0
votes
4
answers
3k
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?
0
votes
0
answers
651
views
IIS 7.5 successfully compresses but sends uncompressed version in response
I have IIS 7.5 setup to use gzip compression on both static and dynamic content. By inspecting the "IIS Temporary Compressed Files" folder, I have verified that it is indeed compressing all of the ...
0
votes
1
answer
313
views
How to echo line out of gzip compressed file?
While importing a mysqldump into a Galera cluster get an error message refering to duplicate error, referencing a line.
How do I echo out the particilar line in order to check the source table?
...