Welcome! Log In Create A New Profile

Advanced

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin
March 23, 2010 09:52AM
Hello!

On Tue, Mar 23, 2010 at 08:13:10AM -0500, Ryan Malayter wrote:

> Ver interesting, Maxim.
>
> I was wondering if this works with proxy_cache... will it unzip
> compressed responses from cache?

Yes.

> If so, it would make a lot of sense to write something that would
> compress items *before* putting them into cache, even if the backend
> has not compressed them. And we could use a high compress-level if the
> item is cachable. Since 95% of clients support gzip, this would seem
> to be the ideal way to run an HTTP proxy (compression is done once per
> stored object, and decompressed on the fly if necessary for a
> particular client).
>
> Any thoughts on that? Would an additional proxy_cache_gzip module be a
> good idea, or would it have to be a patch to the main proxy_cache
> module?

I belive proxy_cache must cache response as it was got from
upstream. It is not it's business to compress or change anything,
there are output filters to do changes.

On the other hand it is believed to be good idea to implement
cache support in gzip filter. I.e. gzip filter will cache gzipped
content and will send it to client instead of re-compressing it.
And it's actually in Igor's plans AFAIK, but most likely not near
plans.

> I suppose something similar could be done right now by having an extra
> proxy layer (a "fetcher/compressor" layer) behind the cache, but that
> seems like a hack.

Yes, this can be done easily with additional proxy layer.

Maxim Dounin

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

[ANNOUNCE] gunzip filter module 0.3

Maxim Dounin March 22, 2010 02:28PM

Re: [ANNOUNCE] gunzip filter module 0.3

Ryan Malayter March 23, 2010 09:22AM

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin March 23, 2010 09:52AM

Re: [ANNOUNCE] gunzip filter module 0.3

Ryan Malayter March 24, 2010 08:56AM

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin March 24, 2010 10:26AM

Re: [ANNOUNCE] gunzip filter module 0.3

Ryan Malayter March 24, 2010 06:58PM

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin March 24, 2010 07:56PM

Re: [ANNOUNCE] gunzip filter module 0.3

theromis1 April 19, 2010 02:08PM

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin April 19, 2010 10:20PM

Re: [ANNOUNCE] gunzip filter module 0.3

theromis1 April 16, 2010 03:14PM

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin April 17, 2010 05:42AM

Re: [ANNOUNCE] gunzip filter module 0.3

theromis1 April 27, 2010 06:30PM

Re: [ANNOUNCE] gunzip filter module 0.3

theromis1 April 20, 2010 07:00PM

Re: [ANNOUNCE] gunzip filter module 0.3

Maxim Dounin April 21, 2010 11:22PM

Re: [ANNOUNCE] gunzip filter module 0.3

theromis1 April 22, 2010 09:36PM

Re: [ANNOUNCE] gunzip filter module 0.3

theromis1 May 03, 2010 01:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
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