I checked the cache path / usr / local / nginx / proxy _cache. The cache file was not found after visiting the same URL multiple times.
My configuration: ngnix.conf
http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; sendfile on;
default
server { listen 80; server_name 208.115.202.87; location /test { proxy_cache content; proxy_cache_key $host$uri$is_args$args; proxy_cache_valid 200 15m; proxy_pass http://aaa.com/; }
source share