Caching images with memcached

Maxim Dounin mdounin at
Thu Apr 19 13:40:39 UTC 2012


On Thu, Apr 19, 2012 at 08:31:48AM -0400, utahemre wrote:

> Hi everyone,
> I want to cache png images with memcached and serve with nginx.
> I configured nginx and i could write images to memcached. When i try to
> read this images from cache with memcached client i can.
> But when i try to read this images from nginx,  broken images comes.
> For example : I put byte array to memcached with 115832 bytes but when i
> try to read get 114940 bytes.
> Anyone has idea?

Usually it happens due to compressed content being put into 
memcached by a memcached client.

Maxim Dounin

More information about the nginx mailing list