Hi all, How can I set separate caching expiration time for authenticated and non auth users? In my case the caching is set this way proxy_cache_key $scheme$host$request_uri$cookie_sessionid; proxy_cache_valid 200 302 2m; proxy_cache_use_stale updating; The presence of session ID ensure separate cache pages for auth & non auth users. But I want an experience where non auth users have a page cached for 1 hour and auth users have a page cached for 2 mins. How can I achieve this in Nginx? Can someone help? FYI, this is under the same location directive. - Quintin
on 2012-10-21 05:18
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.