Using rails nginx with passenger. I put the following in the nginx.conf file for caching images, js. etc. But now I notice that my ajax calls are cached or rather the expiration is set to some 30 years in future. I would like to have the javascripts cached but not the ajax calls. How do I do it?
location ~* ^.+.(jpg|jpeg|gif|png|css|js|swf)?([0-9]+)?$ {
expires max;
passenger_enabled on;
}
I am seeing this on firefox 3.5