#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 harm):

 The suggestion mentioned in comment:6: "automatically only taking into
 account the actual used cookies in the cache key"  that would work also in
 the following case:

   * csrf middleware is enabled  (so user sends csrftoken cookie every
 request.
   * Some view A depends on cookie foobar_enabled (2 values), but that
 specific view does NOT use any csrf token.
   In the current situation caching view A does not work between clients
 (as different csrf tokens cooies, cause different cache keys in the view
 that doesn't use this cookie)

 With suggestion comment:6 this would automatically work.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/9249#comment:11>
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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to