I checked the cache path /usr/local/nginx/proxy_cache. No cache file found after I visit some url many times.
My configuration: ngnix.conf
http {
You should turn on error logging, and then take a look at that. I had a similar problem with the fastcgi cache, and the issue was the folder permissions.
nginx does not cache pages which sets cookies,
Check if your pages have a Set-Cookie
header.
If necessary, cookies can be ignored with proxy_ignore_headers and suppressed with proxy_hide_header. For example:
proxy_ignore_headers Set-Cookie;
proxy_hide_header Set-Cookie;