Different cache time for different locations

Nuno Neves nfnlists at gmail.com
Fri Aug 31 16:46:02 UTC 2012


All my requests passes in the php location to fastcgi ( location ~
\.php$ ) and I would like to have different cache time for different

As an example :

/ -> cache time for 10 minutes
/about -> cache time for 1 day
/products -> cache time for 1h

Right now I have the same cache for all requests: fastcgi_cache_valid
200 302  10m;

How am I able to accomplish this setup?



More information about the nginx mailing list