cache static content in memory

Igor Sysoev is at rambler-co.ru
Fri May 29 22:37:02 MSD 2009


On Fri, May 29, 2009 at 02:06:28PM -0400, nfn wrote:

> Ok ..
> 
> Thanks Igor :)
> 
> So, If I have a "site.com/contact/" it will be cached since we have:
> 
> location / {
> proxy_cache zone;
> ...
> }
> 
> To avoid this I need to add:
> 
> location /contact/ {
> proxy_cache off; # default
> ...
> }
> 
> Is that it?

If you set

location / {
    proxy_cache zone;
    ...
}

location /contact/ {
    ...
}

then /contact wil not be cached.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list