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
0 answers
11 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....
  • 536
0 votes
0 answers
7 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://...
0 votes
1 answer
28 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 ...
  • 101
0 votes
1 answer
49 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 ...
1 vote
0 answers
32 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 ...
2 votes
1 answer
214 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/...
0 votes
2 answers
216 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 ...
  • 101
2 votes
0 answers
231 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 ...
  • 137
0 votes
0 answers
143 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 ...
  • 1
1 vote
1 answer
1k 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 ...
  • 3,013
0 votes
0 answers
252 views

NGINX not enabling GZIP for css even though it is in config

I have built a simple static site, that I am serving with nginx (from docker). Currently I am trying to implement some best-practices, including gzip. I have used some example config I found online, ...
1 vote
1 answer
820 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 ...
5 votes
1 answer
400 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 ...
  • 181
2 votes
2 answers
815 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
363 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
3 answers
578 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, ...
  • 231
0 votes
1 answer
115 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
0 answers
156 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; ...
  • 115
0 votes
1 answer
861 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: ...
  • 317
4 votes
1 answer
2k 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?
  • 191
0 votes
2 answers
509 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
1 answer
54 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 ? ...
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; ...
  • 21
2 votes
1 answer
8k 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....
  • 133
1 vote
0 answers
540 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; ...
  • 2,697
3 votes
2 answers
655 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 ...
  • 1,052
0 votes
1 answer
821 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 ...
  • 204
1 vote
1 answer
229 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
2 answers
508 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
0 answers
1k 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 ...
  • 427
1 vote
2 answers
320 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-...
  • 111
1 vote
1 answer
104 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 ...
  • 111
0 votes
1 answer
372 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
0 answers
526 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; ...
  • 1
0 votes
0 answers
92 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
1 answer
1k 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
3 answers
3k 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 ...
7 votes
1 answer
6k 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 / ...
  • 173
3 votes
1 answer
69 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 ...
  • 133
1 vote
1 answer
7k 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 ...
  • 111
1 vote
0 answers
423 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 ...
  • 111
0 votes
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 ...
0 votes
2 answers
333 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 ...
10 votes
1 answer
9k 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
0 answers
491 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; ...
  • 21
4 votes
3 answers
9k 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 ...
  • 151
1 vote
1 answer
6k 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://...
6 votes
1 answer
10k 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,041
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 ...
  • 143
2 votes
1 answer
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 ...
  • 167

1
2 3 4 5
7