Welcome! Log In Create A New Profile

Advanced

Fully transparent gzip/deflate compression in a reverse proxy setup

Matthias Müller
February 21, 2019 07:52AM
When running NGINX as a reverse proxy (e.g. in front of an application
server) I know how to switch on gzip/deflate from the documentation.

What I am looking for is a *transparent* compression by NGINX, i.e. the
proxied application server should be unaware that the original client
request was asking for a compressed response [1].

That way I want to ensure that compression is always performd by NGINX
rather that the proxied application server or a Microservice framework.
What I expect is that NGINX applies compression more efficiently than
the JAVA backend.


So I have 2 questions:
(1) Is my assumption correct that the NGINX reverse proxy compresses
more efficiently (in terms of Speed and CPU load) than the proxied
JAVA-based backend service?

(2) How do I enable transparent compression, i.e. mask [1] from the
proxied request so that the application server never attempts response
compression and always lets NGINX perform that task?


Thanks,
Matthias


[1]: Accept-Encoding: gzip, deflate

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Fully transparent gzip/deflate compression in a reverse proxy setup

Matthias Müller February 21, 2019 07:52AM

Re: Fully transparent gzip/deflate compression in a reverse proxy setup

Arkadiusz Miśkiewicz February 21, 2019 04:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready