Add the cache settings;
ea.:
proxy_cache content;
proxy_cache_key $scheme$host$request_uri$request_method;
proxy_cache_valid 200 301 302 304 15s;
proxy_cache_use_stale updating error timeout invalid_header http_500;
proxy_pass_header Set-Cookie;
proxy_pass_header Cookie;
proxy_ignore_headers Cache-Control Expires Set-Cookie;
ea.:
proxy_cache content;
proxy_cache_key $scheme$host$request_uri$request_method;
proxy_cache_valid 200 301 302 304 15s;
proxy_cache_use_stale updating error timeout invalid_header http_500;
proxy_pass_header Set-Cookie;
proxy_pass_header Cookie;
proxy_ignore_headers Cache-Control Expires Set-Cookie;