Opened 16 years ago
Last modified 2 years ago
#9249 closed
Google Analytics' Cookies break CacheMiddleware when SessionMiddleware turns on Vary: Cookie — at Initial Version
Reported by: | pixelcort | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | 1.0 |
Severity: | Normal | Keywords: | cache cookies |
Cc: | raymond.penners@…, django@…, harm.verhagen@…, trbs@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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.
Note:
See TracTickets
for help on using tickets.