cache static content in memory

Igor Sysoev is at rambler-co.ru
Fri May 29 21:17:45 MSD 2009


On Fri, May 29, 2009 at 12:47:03PM -0400, nfn wrote:

> Thank you for your explanations.
> 
> Now, using proxy_cache_* am I able to cache only some pages?
> 
> Example:
> site.com/
> site.com/products/
> site.com/products/cars/
> site.com/products/cars/ferrari.php :)
> 
> How can I cache only "site.com/" and "site.com/products/"?

location / {
    proxy_cache  zone;
    ...
}

location /products/ {
    proxy_cache  zone;
    ...
}

location /products/cars/ {
    proxy_cache  off;   # default
    ...
}


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





More information about the nginx mailing list