You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jaime Teng <js...@qinet.net> on 2000/04/24 11:18:57 UTC
adding HTTP Headers
Hi,
As I am developing WEB Applications with Apache and modperl,
it came to my attention that there are some pages that I can
'ALLOW' the browser to cache the pages; I was able to do just
that with modperl by sending out this HTTP Header from within
the perl scripts:
print "Cache-Control: max-age=21600\cM\cJ";
print "Content-Type: text/html\cM\cJ\cM\cJ";
But how do I add something similar to static HTML pages?
On IIS4/5, there is a "CUSTOM HTTP Header" and "Content Expiration"
settings.
Is there a similar setting with Apache?
Jaime