I understand that. It's part of the fastcgi module. I believe that you need to have the cache statements in the same block as the fastcgi_pass (I could be wrong, I set this up a little while ago but Igor helped me with the configuration). It's why I asked. Feel free to not take my advice.
Here's a working configuration where I have a 6-8GB cache of image files:
[code]
location ~ (png|gif|jpg|jpeg)$ {
fastcgi_pass unix:/tmp/my.sock;
fastcgi_cache one;
fastcgi_cache_key unix:/tmp/my.sock.1$request_uri;
fastcgi_ignore_headers Cache-Control Expires;
fastcgi_cache_valid 200 302 1d;
fastcgi_cache_valid 301 7d;
fastcgi_cache_valid any 5m;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_NAME myscript;
fastcgi_buffers 64 8k;
}
[/code]
--
Jim Ohlstein