RE: [Zope] Updating object's modification timestamp?
At 15:28 23/06/99 , Brian Lloyd wrote:
A better option would be to send DC a patch where you move the setting of the last-modified header to _before_ rendering the DTML, so it can be overridden in that DTML. Or so that it at least checks wether the DTML has set a last-modified header and leaves it intact.
That way you can programmatically change the last-modified header sent to the browser. Much better solution.
I suspect that this may be a non-issue - Alex, are you running 1.11.something by any chance? That release had the Last-Modified setting code, but it has since been removed (since it was basically there in an abortive attempt to handle If-Modified-Since) in CVS and the latest Z2 alphas...
So it is... So you just do RESPONSE.setHeader('last-modified', ADateTimeObject.rfc822()) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (1)
-
Martijn Pieters