Gunzip on debian

I would like to use the gunzip module to serve cached, gzipped
responses to clients that do not support gzip. I am running an Ubuntu
14.04 server. According to this post [1] the nginx-extras package
includes support for gunzip, but when I add the ‘gunzip on;’ directive
to my config I get an error that the directive is unknown.

Is the the gunzip module is available from another nginx deb package
on Debian/Ubuntu? My stack needs to work with the standard builds of
nginx that are included with Debian, so I can’t build from source.

If not, what is the best alternative to deal with Vary:
Accept-Encoding in nginx? My back-end only uses two variations: either
“Content-Encoding: gzip” or no Content-Encoding at all. Is there a
‘smart’ value I can add to my proxy_cache_key so that it will
normalize all of the possible variations of ‘Accept-Encoding’
containing ‘gzip’ ?

[1] Nginx 1.4.0, for Wheezy and Squeeze – Dotdeb

On Monday, December 22, 2014 11:59:48 AM Jeroen O. wrote:

If not, what is the best alternative to deal with Vary:
Accept-Encoding in nginx? My back-end only uses two variations: either
“Content-Encoding: gzip” or no Content-Encoding at all. Is there a
‘smart’ value I can add to my proxy_cache_key so that it will
normalize all of the possible variations of ‘Accept-Encoding’
containing ‘gzip’ ?

[1] Nginx 1.4.0, for Wheezy and Squeeze – Dotdeb

Looks like Gunzip support is not enabled for any standard Debian
package:

$ apt-cache search gunzip

$ cat /etc/debian_version
jessie/sid

From your question I understand that you want to unify caching for
requests
with and without Gzip support. AFAIK, Gunzip is not relevant for this
task.

This might be useful:
Re: Can proxy_cache gzip cached content?

Best regards,
Styopa S…

On Monday 22 December 2014 11:59:48 Jeroen O. wrote:

I would like to use the gunzip module to serve cached, gzipped
responses to clients that do not support gzip. I am running an Ubuntu
14.04 server. According to this post [1] the nginx-extras package
includes support for gunzip, but when I add the ‘gunzip on;’ directive
to my config I get an error that the directive is unknown.

Is the the gunzip module is available from another nginx deb package
on Debian/Ubuntu? My stack needs to work with the standard builds of
nginx that are included with Debian, so I can’t build from source.

[…]

You can use the official nginx repository:
http://nginx.org/en/linux_packages.html

wbr, Valentin V. Bartenev