# Gzip\_proxied question

**URL:** <https://www.ruby-forum.com/t/gzip-proxied-question/184594>\
**Category:** NGINX\
**Created:** [March 5, 2010, 12:05am UTC](https://www.ruby-forum.com/t/gzip-proxied-question/184594 "2010-03-05T00:05:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryndole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@bryndole](https://www.ruby-forum.com/u/bryndole)\
**Post date:** [March 5, 2010, 12:05am UTC](https://www.ruby-forum.com/t/gzip-proxied-question/184594/1 "2010-03-05T00:05:07Z")

</div>

I’m new to nginx. After setting up a reverse proxy and reading the  
documentation I am still left baffled over what the gzip\_proxied option  
does.

[http://wiki.nginx.org/NginxHttpGzipModule#gzip\_proxied](http://wiki.nginx.org/NginxHttpGzipModule#gzip_proxied)

gzip\_proxied

syntax: gzip\_proxied …

default: gzip\_proxied off

context: http, server, location

It allows or disallows the compression of the response for the proxy  
request in the dependence on the request and the response. The fact  
that, request proxy, is determined on the basis of line “Via” in the  
headers of request. In the directive it is possible to indicate  
simultaneously several parameters:

I’m guessing the description is directly translated from the Russian?  
Google translate offers the following:

Enables or disables compression using gzip to answer proxied requests  
depending on the request and response. The fact that, proxied request is  
determined on the basis of the line “Via” in the request header. The  
directive can specify multiple paarmetrov:

Not sure what the “Via” request header is.

Can someone explain (in English please!) what this option does? My hunch  
(hope) is that it may enable pass through for gzip’d responses from the  
backend? Am I close?

Thanks in advance,

Bryn

Posted at Nginx Forum:

> **[gzip\_proxied question](https://forum.nginx.org/read.php?2,60121,60121#msg-60121)**
>
> I'm new to nginx. After setting up a reverse proxy and reading the documentation I am still left baffled over what the gzip\_proxied option does. http://wiki.nginx.org/NginxHttpGzipModule#gzip\_proxied \[quote\]gzip\_proxied syntax: gzip\_proxied...

---

<div class="post-metadata">

**Author:** ![bryndole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@bryndole](https://www.ruby-forum.com/u/bryndole)\
**Post date:** [March 5, 2010, 2:31am UTC](https://www.ruby-forum.com/t/gzip-proxied-question/184594/2 "2010-03-05T02:31:26Z")

</div>

Hello!

On Thu, Mar 04, 2010 at 06:04:18PM -0500, bryndole wrote:

> I’m new to nginx. After setting up a reverse proxy and reading  
> the documentation I am still left baffled over what the  
> gzip\_proxied option does.
> 
> [Module ngx\_http\_gzip\_module](http://wiki.nginx.org/NginxHttpGzipModule#gzip_proxied)

[…]

> Not sure what the “Via” request header is.

> **[RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1](https://datatracker.ietf.org/doc/html/rfc2616)**
>
> HTTP has been in use by the World-Wide Web global information initiative since 1990. This specification defines the protocol referred to as "HTTP/1.1", and is an update to RFC 2068. \[STANDARDS-TRACK\]

> Can someone explain (in English please!) what this option does?  
> My hunch (hope) is that it may enable pass through for gzip’d  
> responses from the backend? Am I close?

No.

As long as client request was identified as one came from proxy  
server (“Via” header present) nginx is able to disable or enable  
it’s own gzip depending on various conditions. These conditions  
are controlled via gzip\_proxied directive.

Maxim D.

---

<div class="post-metadata">

**Author:** ![bryndole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@bryndole](https://www.ruby-forum.com/u/bryndole)\
**Post date:** [March 8, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/gzip-proxied-question/184594/3 "2010-03-08T20:10:33Z")

</div>

As long as client request was identified as one came from proxy  
server (“Via” header present) nginx is able to disable or enable  
it’s own gzip depending on various conditions. These conditions  
are controlled via gzip\_proxied directive.

Thank you, that makes complete sense now.

-Bryn

Posted at Nginx Forum:

> **[Re: gzip\_proxied question](https://forum.nginx.org/read.php?2,60121,61547#msg-61547)**
>
> I'm new to nginx. After setting up a reverse proxy and reading the documentation I am still left baffled over what the gzip\_proxied option does. http://wiki.nginx.org/NginxHttpGzipModule#gzip\_proxied \[quote\]gzip\_proxied syntax: gzip\_proxied...
