I'm using 1.1.1. I've got a bunch of legacy code written with date-
based generic views: django.views.generic.date_based . I think that
these views set a vary:Cookie header, which messes up my upstream
caching (see related ticket: http://code.djangoproject.com/ticket/13285
)
The vary:Cookie header isn't needed on these pages (the content
doesn't actually vary) but I'm not sure how to get rid of it. Trying
to set the vary header in the view only adds a different vary header,
i.e. doing this:
response = object_detail(request, ....
response['Vary'] = "other junk"
return response
results in Vary being set to both "cookie" and "other junk".
Is there a straightforward way make the vary:cookie header go away
without breaking too many dishes? I can probably work around this at
the cache level, but it would be much cleaner not to...
Thanks for any suggestions.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.