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

Data is truncating when sent in Gzipped format

I am sending gzipped data from the client to the Apache server and getting it inflated at the Apache layer (Using https://httpd.apache.org/docs/2.4/mod/mod_deflate.html#input). The data is then sent ...
0
votes
3answers
78 views

Apache: compressing as zip (not gzip)

I've configured apache 2.4 to compress content before it is delivered to the client, using mod_deflate and the clients header set to "Accept-Encoding: gzip". So this I got already working, ...
0
votes
1answer
25 views

How to syncronize XML files and store them as .gz at destination using rsync

I'm using rsync -z to backup a large amount of XML files. The source is a huge machine with thousands of GBs available on disk, but the destination is not that powerful. What I want to do is to ...
0
votes
0answers
24 views

logrotate -> gzip 100% CPU usage after boot

I have Ubuntu 20.04. After booting or returning from suspention my CPU goes into 100% usage thanks to (root) gzip process. After I checked dependencies with: ps fax | grep -B5 gzip It turned out that ...
0
votes
0answers
45 views

Apply Apache GZIP on proxied resources

I'm running an asp.net application on a Kestrel server. The front facing server is Apache. I'm have trouble applying gzip compression on the proxied resources, although any other resources served ...
0
votes
0answers
30 views

All compressed files corrupted in server / Cannot restore .gz .tar.gz files

Did anyone run into some issues (probably a debian dist-upgrade) on having all the .gz files no longer being recognized as gzip format? We had an issue with a DB in one of the servers this morning; ...
0
votes
1answer
99 views

Enable gzip with docker and bitnami/nginx

I deployed a website with docker and bitnami/nginx as image: https://www.10studio.tech/demo. After deployment, I realized that files like analyzejs.js was not gzipped: Here is docker-compose.yml: ...
2
votes
1answer
237 views

Compress old emails with dovecot

How can I configure dovecot to compress/archive old emails (say 6 months old) with the users still being able to read them, to save some precious space on the server?
0
votes
0answers
27 views

gzip on Nginx doesn't compress some JavaScript files

I've activated gzip compression on our Nginx installation. We run multiple sites / server blocks on one installation, I've for now activated gzip only for one of them (our main page). This is the ...
0
votes
2answers
43 views

nginx gzip compression results in larger file sizes

I'm trying to enable compression for a SPA application that is 99% JS and CSS. Here is the nginx config that I'm using: (I have commented out some settings while testing, but even if enabled do not ...
0
votes
1answer
26 views

Nginx compressing 5B data to 1.03 KB how to discard this compression?

I have used gzip compression in my Nginx with compression level 9. Then I can see 5B data is compressed to 1KB? Could not know the reason and how to avoid to discard compress for less than 10B ? ...
0
votes
0answers
357 views

Nginx Gzip not compressing JSON

I have tried various settings available for Nginx.conf, none of them are working for me. Below id my current config, gzip on; gzip_disable "msie6"; gzip_vary on; ...
0
votes
1answer
740 views

How to compress SQL file correctly on CentOS?

I have a database whose size is roughly 3.1 Gb according to PhpMyAdmin. I would like to dump and compress it with gzip. This is a very similar answer to what I'm trying to do: https://serverfault....
0
votes
0answers
14 views

Compression and decompression of responses .NET CORE

I want to compress my responses in the back using .NET core but the problem is that if I want to decompress those responses in the front with Angular 8 I don't know how to do it. How can I make this ...
1
vote
2answers
241 views

Copying large snapshot images to remote storage Linux

I need to copy snapshots of virtual machines running on Proxmox (KVM) servers and copy the snapshots to offsite storage. Most snapshots are a few gb, but some are rather large, up to 200gb. I would ...
0
votes
1answer
216 views

How to exclude a folder by name recursively when making a tar archive?

I know it is possible to exclude a particular folder by a command like this: tar --exclude='/srv/www/project/node_modules' -zcvf /backup/project.tgz . My question how to exclude all folders named ...
1
vote
0answers
60 views

Enabled brotli mod in apache but still wordpress not using brotli

I have installed brotli on my apache server. The problem is Wordpress is not using brotli compression. It uses gzip only. I have turned off zlib.output_compression, disabled cdn and WP-Rocket but ...
1
vote
2answers
250 views

gzip softlocks every midnight during nginx log rotation, causes kernel panic

Some of our servers run on Ubuntu 18.10. They host a few Node.JS services receiving TCP connections as upstream from nginx, as well as a websocket implementation in Dotnet Core. It's a fairly simple ...
2
votes
0answers
438 views

Streaming proxied responses with gzip on nginx

I have an nginx reverse proxy in front of a node.js backend server. In my node app, I am able to stream responses as they become ready, so that the client can start downloading resources referenced in ...
1
vote
2answers
122 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
45 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
114 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
342 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
27 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
575 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, ...
4
votes
3answers
2k 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 ...
4
votes
1answer
3k 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 / ...
3
votes
1answer
52 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 ...
1
vote
1answer
4k 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
292 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
2answers
734 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
43 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 ...
8
votes
1answer
5k 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 ...
2
votes
0answers
276 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; ...
4
votes
3answers
5k 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
4k 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://...
2
votes
1answer
6k 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
629 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
1k 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 ...
34
votes
5answers
13k 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
167 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
266 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
672 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
611 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
2answers
2k 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
459 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
809 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
4k 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
420 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
2answers
3k 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 ...

1
2 3 4 5
7