<html><body><div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">Hello,</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">I would like to use the FastCGI cache feature of nginx for my web application. But I need to use it only for a set of URL.</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><br></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">I would like to use it for the following locations:</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><br></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><strong>http://domain.com/index.php?act=detail&ID=[ANY ID HERE]</strong></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><br></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">Example:</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">http://domain.com/index.php?act=detail&id=o2Zimg</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><br></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">And so on.</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">What should I place in the location directive to cache only those URLs?</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">I can't figure it out on the nginx wiki.</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><br></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">Also, I would like to replace the Cache Control and Pragma headers set by my PHP application, can I use add_headers directive? Or I would have to add a 3rd party module, like more_http_headers? I use nginx from PPA(Ubuntu), so for adding more_http_headers I would have to build it :/</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;"><br></div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">Greetings from Antarctica.</div><div style="font-family: Helvetica, Arial, Verdana, sans-serif;">Thanks.</div></div></body></html>