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
2 votes
1 answer
868 views

Apache GZIP for images - any reason?

JPEG, GIF, PNG and WEBP images are already compressed. Is there any reason to serve them up using GZIP compression, regardless of whether or not the client says it may accept GZIP compression? curl -H ...
Lumi's user avatar
  • 199
0 votes
0 answers
177 views

Compressing but no Compression

Ok, on IIS i have GZip and Brotli installed, I changed the priority of the two around. The headers are now showing "Content-Encoding : GZIP" but when I use tools.pingdom.com , it is saying ...
MiscellaneousUser's user avatar
1 vote
2 answers
128 views

Nginx performance issues

I made a website using React and connected to Strapi. But I need to keep some background videos mainly on the home page. The main banner has 4 videos and the background of the page is also a video. ...
Fabio Pereira Araujo Da Silva's user avatar
0 votes
0 answers
162 views

aws t3.small nginx gzip response time is slow?

I am having php web application on t3.small ec2 instance. webserver : nginx gzip on; gzip_vary on; gzip_min_length 10240; gzip_proxied expired no-cache no-store private auth; ...
Hitesh's user avatar
  • 1
2 votes
0 answers
158 views

Pagespeed delivers content with gzip header but not gzip content all out of nowhere?

All out of nowhere our website did not longer load CSS. The Chrome browser console showed Error 330 (net::ERR_CONTENT_DECODING_FAILED) With the httpie tool a similar error: $ http "https://www....
Alex's user avatar
  • 726
1 vote
0 answers
113 views

browser-nginx compression priority

Nginx with enabled both brotli and gzip compressions replies: curl -s -I -H 'Accept-Encoding: br,gzip,deflate' https://something content-encoding: gzip curl -s -I -H 'Accept-Encoding: br' https://...
MoonChild's user avatar
0 votes
1 answer
2k views

enable gzip compression on nginx give me long time server response

I have a web application running on a very low web server (CPU: ARM926EJ-S, RAM: 128MB), when I enabled gzip on nginx, I found that the server takes longer to respond, and I don't know if there is ...
Unknown's user avatar
  • 101
0 votes
1 answer
70 views

Dovecot gz trailer has wrong CRC

Installed hestia with dovecot+exim4+roundcube. Setted up gzip by adding zlib_save = gz zlib_save_level = 6 in config. Added loading module in imap conf. Im using thunderbird to read and sent ...
Павел Шаффер's user avatar
1 vote
0 answers
133 views

Enable Brotli for Apache on Google Cloud Compute Engine website

I installed and enabled the Brotli module just fine through SSH. Then, I added this to my port 80 VirtualHost config: <IfModule mod_brotli.c> SetOutputFilter BROTLI_COMPRESS ...
JimmyTheCuck's user avatar
2 votes
1 answer
5k views

Which static file types does Nginx generate ETags for by default?

In modern versions of Nginx, the ETag is automatically generated for static file types, even if you don't specifically enable the etag on in your location blocks or otherwise: https://nginx.org/en/...
Jesse Nickles's user avatar
0 votes
2 answers
1k views

Nginx can't handle .br (Brotli) and .gz (GZip) file requests properly

I can't set up nginx 1.18 (Ubuntu 22.04 as a server env, Chrome 104 as a client) for dealing with .br or .gz files. My frontend code bundler (Parcel 2) has generated .br and .gz index.html files but ...
Eddie R's user avatar
  • 101
2 votes
0 answers
613 views

Are servers allowed to add a Content-Encoding header based on filename, if there is no compression on-the-fly?

Problem Suppose we have a compressed archive on disk, e.g. file.tar.gz, which should be served as-is. The file is served with Content-Type: application/gzip, but for some reason the server also adds a ...
djvg's user avatar
  • 135
1 vote
0 answers
787 views

Poor server performance with nginx gzip

I enabled gzip on my nginx reverse proxy which is hosted on EC2 free tier (so lightweight server). I noticed that my request latency increased by almost 2x (13+KB compressed to 4+KB). The only issue ...
Stuart's user avatar
  • 11
1 vote
1 answer
3k views

How can I remove an accept-encoding request header in nginx?

The recent update to zlib due to a security hole appears to cause a major problem when serving PHP-FPM 8.0 via nginx on Ubuntu focal. Any requests with a gzip encoding fail right at the start of the ...
Synchro's user avatar
  • 3,210
1 vote
1 answer
2k views

Download file from Artifact Registry (Maven)

I have been playing with REST API for Artifact Registry. I can find the URL for .zip files I would like to download, but I only get JSON responses. Is it possible to download individual artifact files ...
Henrik Ormåsen's user avatar
5 votes
1 answer
536 views

Unable to compress 18GB file on Ubuntu Linux 18.04

It never happened to me before, but I'm unable to do a simple task such as compressing a 18.5 GB file on Ubuntu Linux 18.04 with any of the popular compressing tools such as gzip, bzip2 and 7z. All of ...
Claudi's user avatar
  • 181
2 votes
2 answers
1k views

Cannot turn off SSLCompression in Apache?

My Apache is 2.4.46 and is using Openssl version 1.1.1f I have set the directive SSLCompression Off. Even if i enable it, it says SSL Compression is not supported, which is good I guess. But, when I ...
user avatar
1 vote
2 answers
536 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 ...
Himanshu's user avatar
0 votes
3 answers
1k 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, ...
dr0i's user avatar
  • 231
0 votes
1 answer
178 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 ...
optimus_prime's user avatar
0 votes
0 answers
261 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; ...
Armand's user avatar
  • 115
0 votes
1 answer
2k 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: ...
SoftTimur's user avatar
  • 355
4 votes
1 answer
3k 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?
Tofandel's user avatar
  • 201
0 votes
2 answers
841 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 ...
Hristo Kolev's user avatar
0 votes
1 answer
71 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 ? ...
Vasudeva Krishnan's user avatar
2 votes
1 answer
2k 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; ...
Vipul's user avatar
  • 21
2 votes
1 answer
16k 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....
Mcload's user avatar
  • 133
1 vote
0 answers
990 views

Nginx not setting Vary header via add_header directive in server block?

I have gzip_vary on; I also have (inside a server section): add_header Vary Origin; Yet when I inspect headers sent, the Vary header only includes Accept-Encoding; if I remove the gzip_vary on; ...
artfulrobot's user avatar
  • 3,089
3 votes
2 answers
782 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 ...
Dokbua's user avatar
  • 1,072
0 votes
1 answer
956 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 ...
W.M.'s user avatar
  • 214
2 votes
1 answer
367 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 ...
Rahul Biswas's user avatar
1 vote
2 answers
673 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 ...
Érik Desjardins's user avatar
5 votes
0 answers
2k 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 ...
Dominic P's user avatar
  • 497
1 vote
2 answers
411 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-...
abcjme's user avatar
  • 111
1 vote
1 answer
169 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 ...
Alin C's user avatar
  • 111
0 votes
1 answer
540 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 ...
Stringers's user avatar
0 votes
0 answers
661 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; ...
KSB's user avatar
  • 1
0 votes
0 answers
120 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; ...
liunewshine's user avatar
0 votes
1 answer
2k 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, ...
Jack Stouffer's user avatar
5 votes
3 answers
4k 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 ...
Fabrizio Mazzoni's user avatar
8 votes
1 answer
9k 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 / ...
otong's user avatar
  • 183
3 votes
1 answer
118 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 ...
user avatar
3 votes
1 answer
8k 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 ...
Jason's user avatar
  • 131
1 vote
0 answers
586 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 ...
EPurpl3's user avatar
  • 111
1 vote
2 answers
2k 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 ...
Robert Tupelo-Schneck's user avatar
0 votes
2 answers
532 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 ...
Patrick Morton's user avatar
11 votes
1 answer
10k 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 ...
Shinebayar G's user avatar
2 votes
0 answers
691 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; ...
Josh Z's user avatar
  • 21
4 votes
3 answers
10k 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 ...
Lukigi's user avatar
  • 151
1 vote
1 answer
7k 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://...
Cyril Duchon-Doris's user avatar

1
2 3 4 5
7