Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
68 views

mysterious gzip malfunction on nginx

· gzip shows as not enabled on my site · and not even the tech support of my host, asmallorange, can figure out the cause of my problem · hopefully someone here can · i've documented my exact set-...
1
vote
1answer
18 views

How to enable IIS to always precompress / pregzip a certain file?

I have a 4mb js file (gzipped version is 900kb). The file is like this: main.328479fdsdf.js (so it has a hash based on the content). IIS seems to compress my big js file only if is accessed 2 times ...
0
votes
1answer
21 views

Use of gzip with multiple, sequential nginx proxies

Consider the following server setup on a network: In this example, both of the proxy servers are Nginx servers. If the aim is to reduce load time for the client, should compression be used by the ...
0
votes
0answers
100 views

nginx gzip not working for ssi

I tried setting up gzip compression for server side included files in nginx. I have enabled gzip compression in nginx.conf This is the configuration that I have used: gzip on; gzip_vary on; ...
0
votes
0answers
21 views

nginx gzip not work in some network

Pictures: In centos7 gzip works In windows10 wifi:name1, gzip does not work In windows10 wifi:name2, gzip works But tomcat 8 gzip works in all places My nginx config: user nginx; ...
0
votes
1answer
128 views

Change nginx gzip compression level based on user agent

I've profiled my site and realized that turning the gzip_comp_level up past 1 for desktop reduces total throughput. But, on mobile, where network speed is the bottleneck and not the server TTFB, ...
2
votes
3answers
212 views

How to replace gzip with pigz without breaking anything

I would like to use pigz to compress my backups instead of gzip on Linux. Since pigz is a replacement for gzip, is it safe to replace the gzip binary (without deleting it) with a symlink to the pigz ...
1
vote
1answer
688 views

Enable both brotli and gzip on NGINX?

Is it possible to enable both gzip and brotli compression in NGINX? If the client supports both then return brotli, if only gzip / brotli then return the specicfied, and else if no support for gzip / ...
0
votes
0answers
29 views

compression of comma v/s pipe separated files

Comma separated data files takes almost same or slightly more disk space than pipe separated data. But once compressed using gzip the comma separated files are much smaller than pipe separated files. ...
3
votes
1answer
37 views

Nginx image display issue after optimization

I made some optimizations using gtmetrix to improve web site performance. Like enabling gzip compression etc.. When I try to test site using online services like browserling.com images are not ...
0
votes
0answers
120 views

Configure API proxy with custom rules based on path - Nginx

I configured nginx to act as a reverse proxy for Blynk's API since the visualization tool I'm using requires me to use https and they just support http. Everything works fine, but since i need to ...
1
vote
1answer
1k views

Terminate Gzip compression at AWS ELB classic load balancer

We have a set of servers in AWS that are behind an ELB. We are trying to upload data to the server. We want to enable gzip, but the servers themselves use an obscure golang framework that does not ...
1
vote
0answers
214 views

Why do i get gzip css and js with full size instead of compressed size

I am doing some tests with gzip, I have manually compressed the CSS and JS with gzip. The size of the JS has dropped from 33kb to 7kb. The problem is when I look in the network tab in Chrome or ...
0
votes
1answer
244 views

Apache server causes tar.gz files to download as uncompressed tarballs still named .gz

We are hosting a number of .tar.gz files on our Apache server. When we download these files, the filename of the downloaded file is the same as on the server... something.tar.gz... but the file is ...
0
votes
2answers
29 views

BASH/Linux - Need a command to recursively compress a specific file type within a multiple level directory

I need to compress a considerable number of pdf and txt files but I want to leave the file structure untouched. The directories have many, many subdirectories. When I want to compress files of a ...
4
votes
1answer
2k views

Does Nginx compress files for every request? (with gzip_on)

this is my very first question and please excuse my poor English. I was doing research about how can i improve my page speed and i found out about nginx gzip settings. Below are my gzip settings ...
1
vote
0answers
153 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; ...
3
votes
3answers
2k views

Problems with Gzip compression on Amazon CloudFront

I had a CloudFront distribution configured with S3 as an origin. I have enabled "Compress Objects Automatically" as per Amazon guide. Waited for the distribution status to display "online" then ...
0
votes
1answer
2k views

Nginx reverse-proxy to a cloudfront distribution and preserve gzip compression

I have problems trying to set up a nginx reverse-proxy that preservers gzip compression. My setup : I have a CLoudfront distribution with gzip compression enabled (as you can see on http://...
0
votes
1answer
2k 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
1answer
362 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
1answer
655 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 ...
27
votes
5answers
7k 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
0answers
133 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} " \ ...
0
votes
1answer
478 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
2answers
360 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 ...
0
votes
2answers
1k 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
2answers
198 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
402 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
1answer
308 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/...
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
82 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
2answers
505 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 ...
0
votes
3answers
2k 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/...
4
votes
2answers
1k 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
0answers
90 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
3answers
7k 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
0answers
196 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
63 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
2answers
1k 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 ...
1
vote
1answer
2k 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 ...
1
vote
2answers
180 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
2answers
848 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
2answers
1k 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
1answer
457 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 ...
2
votes
1answer
830 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
1answer
669 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
426 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 ...