#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: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------
Comment (by KyleMac): I've now managed to get this to work in Internet Explorer and Firefox. The fix for IE is quite simple and is due to it sending a non standard `If-Modified-Since` header that ConditionalGetMiddleware fails to parse. I've opened ticket #18648 for that. While Firefox won't send `If-Modified-Since` with `Vary: Cookie` it will send back the Etag. So to get Firefox to work as expected all you need to do is use a hash of `Last-Modified` as the Etag (assuming there isn't already a proper Etag for the response). -- Ticket URL: <https://code.djangoproject.com/ticket/9249#comment:13> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.