Re: A more robust conditional get

2007-10-21 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > So, as an addition to the current behaviour, I'm probably +1 on > including this. There's a bit of common stuff we can factor out from > that code to avoid duplication with the middleware and other ETag > handling code people might want to write, but that's minor stuff.

Re: A more robust conditional get

2007-10-20 Thread Ivan Sagalaev
Jeremy Dunck wrote: > Neat-o. License? If it's OK, I'll use it whether it goes into django > trunk or not. :) Let's say it's BSD. This is a part of the tutorial on writing forum in Django and I didn't think about wrapping it as a product. But if I did it would be BSD usually :-) --~--~-

Re: A more robust conditional get

2007-10-19 Thread Malcolm Tredinnick
On Sat, 2007-10-20 at 01:20 +0400, Ivan Sagalaev wrote: > Hello! > > A similar issue was raised on this list some time ago but as far as I > remember there wasn't any proposed solution. I think I have a good one. > > I'm trying to solve a problem with the current implementation of > conditiona

Re: A more robust conditional get

2007-10-19 Thread Jeremy Dunck
On 10/19/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > I didn't file a ticket for this yest because I vaguely remember some > opposition to the whole idea of trying to optimize current conditional > get behavior. I'd like to raise this issue again and if it turns out > that people like the idea I

Re: A more robust conditional get

2007-10-19 Thread Jeremy Dunck
On 10/19/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > As a solution I propose a view decorator taking as a parameter a > function calculating Last-Modified and/or ETag that takes care of all > the mechanic of checking request headers, returning 304 Not Modified > and setting response headers. It

A more robust conditional get

2007-10-19 Thread Ivan Sagalaev
Hello! A similar issue was raised on this list some time ago but as far as I remember there wasn't any proposed solution. I think I have a good one. I'm trying to solve a problem with the current implementation of conditional get where ETag and Last-Modified are taken into account only after