Adding Caching to Custom handler

Sammy Raul sammyraul1 at gmail.com
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 {
                 myhandler;
                     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.

Thanks,
Raul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120426/68c40c2d/attachment-0001.html>


More information about the nginx mailing list