Adding Caching to Custom handler

Sammy Raul sammyraul1 at
Thu Apr 26 08:10:20 UTC 2012

Hi Guys,

I wanted to know, if I can use nginx caching techniques in my handler.
There is no backend server and I cannot use proxy_pass.

I wanted to store contents from some other library. For example:

location /cdn {
                     proxy_cache my-cache;
                     proxy_cache_valid  200 302  60m;
                     proxy_cache_valid  404      1m;

I think this will not work.

Can anyone help me how I can achieve caching in my handler.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list