Create /etc/nginx/conf.d/cache.conf with contents:
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:5m max_size=1000m;
proxy_cache_key "$host$request_uri$cookie_user";
Add the following to nginx directives for the specific domain: