Re: Adding a middleware to match cookies

2017-01-07 Thread Jeff Willette
, Florian Apolloner wrote: > > Hi Jeff, > > On Saturday, January 7, 2017 at 3:50:56 AM UTC+1, Jeff Willette wrote: >> >> What if there was an optional middleware early in the request processing >> that matched cookies based on a regex in settings and then modified the

Re: Adding a middleware to match cookies

2017-01-06 Thread Jeff Willette
, 2017 at 12:02:30 PM UTC+9, Carl Meyer wrote: > > Hi Jeff, > > On 01/06/2017 06:21 PM, Jeff Willette wrote: > > I understand that calling is_authenticated on a user will require the > > session to be accessed and the vary by cookie header to be in the > > res

Adding a middleware to match cookies

2017-01-06 Thread Jeff Willette
I recently proposed a bad fix (https://code.djangoproject.com/ticket/27686) but I think the problem still remains and I might have a way arpund it. I understand that calling is_authenticated on a user will require the session to be accessed and the vary by cookie header to be in the response, bu

optional middleware to eliminate cookies in request header

2017-01-06 Thread Jeff Willette
I just posted this and I didn't see it pop up in the group, so I am sorry if this is a repost. I recently submitted a bad fix (https://code.djangoproject.com/ticket/27686#comment:6). I made a mistake in thinking about how the caching system works but I think I have another solution to the pro