I’m running nginx 1.3.9 with memcached_pass and I have set
memcached_gzip_flag in an attempt to serve gzipped content directly from
memcached (mainly to save memory on my memcached processes, which get
pretty
large). My gzip flag is being detected properly–nginx adds the
Content-Encoding header–but I get 330 errors saying the content
encoding is
incorrect. Every test I’ve made indicates that the data I am storing is
valid gzipped data. Does anyone have any advice on how to troubleshoot
this?
As far as I can tell from [1], it stores zlib stream, not gzip
(which is a different format on top of the same compression
algorithm, see zlib.h for details). It likely can be easily
adapted to use gzip though.
Right you are. Thanks for the second set of eyes! I’ve submitted a PR
to
Dalli to add a gzip compressor and I’m using a custom one now. It’s
working
wonderfully.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.