Re: CacheMiddleware and middleware orders matters

2007-08-16 Thread Eratothene
I have looked at the link you have given me. But I totally disagree, it looks like to me that the best order is ConditionalGet CacheMiddleware SessionMiddleware GZipMiddleware But django dies and it is a bug in django. I have made bug report with a patch http://code.djangoproject.com/ticket/5176

Re: CacheMiddleware and middleware orders matters

2007-08-15 Thread Kai Kuehne
Hi Erarothene, On 8/16/07, Eratothene <[EMAIL PROTECTED]> wrote: > > I am totally confused with CacheMiddleware docs and middleware docs. > > I want to use such middlewares in project: > ConditionalGetMiddleware > GZipMiddleware - addes Vary on Accept-Encoding > SessionMiddleware - addes Vary on

CacheMiddleware and middleware orders matters

2007-08-15 Thread Eratothene
I am totally confused with CacheMiddleware docs and middleware docs. I want to use such middlewares in project: ConditionalGetMiddleware GZipMiddleware - addes Vary on Accept-Encoding SessionMiddleware - addes Vary on Cookie CacheMiddleware - I am trying to find correct order for this middleware