For normal public pages & js I do a
proxy_cache assets;
proxy_cache_key backend$request_uri;
proxy_cache_valid 200 302 100d;
proxy_cache_valid 404 1m;
proxy_cache_use_stale error timeout invalid_header;
to cache content.
Is there a per user
or IP
based caching mechanism that will allow me to cache content.
My primary intention is cache pages for a user for short durations like 30 seconds or a minute maximum to prevent fast refreshes.
I understand the implication with NAT. But I am fine with it.