I'm using django caching(per-site cache using middlewares), and want to show cached pages only to anonymous users.
I found an option:
CACHE_MIDDLEWARE_ANONYMOUS_ONLY
and set it True.
It cases that page generated for logged user will not be saved to cache, but pages generated for anonymous are saved to cache and send to logged users.
How to force django to not serve cached content to logged users? I'm using user login information on each page(like: "hi UserName"), and when anonymous user request a page it's cached and since this logged users got: "Hi anonymous!"
Sorry for my bad english. John.