17 Apr
2003
17 Apr
'03
2:57 p.m.
On Thu, 2003-04-17 at 06:40, Germer, Carsten wrote:
Hi there,
I have set up an Apache as reverse proxy and it works fine so far. The actual problem is that I only get "image"s to cache, no pagelike items...
You'll need to add a couple headers to pages you want cached, instructing the cache as to how they should be handled. I create a DTML method called cache_content that consists of: <dtml-call "RESPONSE.setHeader('Expires', _.DateTime(_.DateTime().timeTime() + 3600).toZone('GMT').rfc822())"> <dtml-call "RESPONSE.setHeader('Last-Modified', bobobase_modification_time().toZone('GMT').rfc822())"> And then can call that method from any page I want to be cached by Apache. HTH, Dylan