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 {
nginx does not cache pages which sets cookies, Check if your pages have a Set-Cookie header.
Set-Cookie
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;