#13283: CACHE_MIDDLEWARE_ANONYMOUS_ONLY kills anonymous caching efficiency -----------------------------------+---------------------------------------- Reporter: carljm | Owner: nobody Status: new | Milestone: Component: Cache system | Version: SVN Resolution: | Keywords: session accessed vary cookie Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | -----------------------------------+---------------------------------------- Comment (by christandiono):
I have to say that, while changing the behavior of CACHE_MIDDLEWARE_ANONYMOUS_ONLY might seem like the route to take (and I'd certainly like it that way), I'm not sure it is: SessionMiddleware uses a different session per anonymous user because there are some sites that might actually require different sessions per anonymous user. Instead, I think there should be a new setting that causes SessionMiddleware to consider all anonymous users to be part of the same session, or not create sessions for anonymous users. Something like "if ANONYMOUS_SHARE_SESSION, don't set Vary: Cookie". CACHE_MIDDLEWARE_ANONYMOUS_ONLY doesn't kill anonymous caching efficiency; it's that we're trying to use it in a way it's not necessarily meant to be used... -- Ticket URL: <http://code.djangoproject.com/ticket/13283#comment:15> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.