NGINX as proxy before apache, and localy store php generated images

Jaroslav huglester at
Fri Sep 28 08:10:27 UTC 2012

Hello everyone,

I am using nginx as proxy before apache a long time already. And it is
really terrific what it does.
Ram usage dropped like 3 times
I mainly set up image cache headers in nginx config

Today I've spotted, that one of vhosts is generating images ALWAYS on the
fly, images are accessed like:


I wonder is there any way I can tell nginx to store those images locally,
ie for a week, and serve them
to other users, so it won't be resized multiple times?

I tried googling but don't even know how/where to start from..

Thank you in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list