![](https://secure.gravatar.com/avatar/3bef09da3292c944649ffc28673df870.jpg?s=120&d=mm&r=g)
8 Aug
2004
8 Aug
'04
7:26 a.m.
On Sat, Aug 07, 2004, Mary Gardiner wrote:
2. generate the ETag header based on a hash of page contents
Pros: As best I can tell, this is how the ETag header is really meant to be generated, ideally it signals octect equality and should change if, for example, Nevow for some reason starts pretty-printing output.
Cons: rend.Page.renderHTTP seems to make this really hard -- even if you set the bufferedflag = True, rend.Page.afterRender doesn't seem to have any way to access the result of the render.
The attached seems to do what I want here, I'll be interested to hear about what horrors I am inflicting upon myself by doing this. -Mary