[Zope] How to set HTTP Headers with TAL?

Mitja bei Web mmartini@web.de
Mon, 2 Sep 2002 08:44:12 +0200


Hi,

does anybody know how to set HTTP headers with TAL (if possible).

I want to do HTTP caching with Apache as explained here:
http://www.zope.org/Members/rbeer/caching .

These the lines in DTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<dtml-call "RESPONSE.setHeader('Expires', _.DateTime(_.DateTime().timeTime()
+ 3600).toZone('GMT').rfc822())">
<dtml-call "RESPONSE.setHeader('Last-Modified',
bobobase_modification_time().toZone('GMT').rfc822())">
<HTML>
...

Thank you for your help.

Mitja