Welcome! Log In Create A New Profile

Advanced

Adding Caching to Custom handler

Sammy Raul
April 26, 2012 04:12AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Adding Caching to Custom handler

Sammy Raul April 26, 2012 04:12AM

Re: Adding Caching to Custom handler

Brian Akins April 26, 2012 07:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready