#9249: Google Analytics' Cookies break CacheMiddleware when SessionMiddleware turns on Vary: Cookie -------------------------------+------------------------------------ Reporter: pixelcort | Owner: vvd Type: New feature | Status: assigned Component: HTTP handling | Version: 1.0 Severity: Normal | Resolution: Keywords: cache cookies | Triage Stage: Accepted Has patch: 1 | Needs documentation: 1 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------ Changes (by aaugustin):
* version: 1.4-rc-2 => 1.0 * type: Bug => New feature Old description: > When using Google Analytics on a Django project with CacheMiddleware and > SessionMiddleware turned on, the Cookies that Google Analytics apparently > change on each reload, invalidating the Vary: Cookie parameter that > SessionMiddleware is setting. > > There should be a way to define cookie prefixes, such as '__utm', to > ignore for cookie variation for caching. New description: When using Google Analytics on a Django project with CacheMiddleware and SessionMiddleware turned on, the Cookies that Google Analytics apparently change on each reload, invalidating the Vary: Cookie parameter that SessionMiddleware is setting. There should be a way to define cookie prefixes, such as ``'__utm'``, to ignore for cookie variation for caching. -- Comment: If you look at the discussion, this isn't a bug; it's really a new feature. The version field tracks the version the bug was reported in. Related: #15201. Caching is hard. -- Ticket URL: <https://code.djangoproject.com/ticket/9249#comment:16> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.