Hello guys,

For the newbies out there, this is one way (though arguably unorthodox) to set the Expire header on your page:

$r->headers_out->add('Expires'=>CGI::Util::expires('now','http'));

Notice that I have to 'use CGI::Util' to set this to work. CGI::Util does not expose the function, but it seems to work quite well.

I am sure there is a better way to do this via perhaps Apache::RequestRec. But I can't seem to find it. Any pointers for me?

Reply via email to