On Mon, May 28, 2012 at 9:55 PM, Tzury Bar Yochay <tz...@reblaze.com> wrote:
> I am trying to cope
> with gzipped content arrving from proxified servers using lua-zlib mention
> in this thread but can't get my way in this - especially at compressing
> stage (deflate)
> where the result buffer is malformed missing headers etc.
Can you elaborate? BTW, the "deflate" format is different from the
"gzip" format. You should be careful here.
Also, it's a good idea to always disable compressing on the backend
and rely on nginx to do the gzip compressing for you (if asked by the
> That raise the issue may it be better if by default filter_by_lua will
> decompress and compress utilizing ngx internal mechanisms.
I'm not sure if that's good idea. Because there's various compressing
methods like "gzip" and "deflate", and exhausting that list is too
Disable compressing on the backend server via the config line
is the most elegant solution.
> A nicer would be in addition to also expose that functionality at either ngx
> interrface or with your strings lib where AES and other string manipulation
> is done.
That may be an option :)
P.S. I'm cc'ing the openresty mailing list so that our discussion can
be beneficial to other people ;)