You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Monica Lau <ml...@yahoo.com> on 2003/02/08 01:15:10 UTC

[users@httpd] Expires HTTP Header

Hi all,

I am using Apache server version 1.3.26.  I use CGI scripts (Perl) to append to the HTTP header.  Basically, I don't want my HTML pages to be cached at all.  I tried this method, 

print "Content-type: text/html \n";
print "Pragma: no-cache \n\n";

and it works!  However, I heard that using Pragma is not good, so I tried using the Expires HTTP header,

print "Content-type: text/html \n";
print "Expires: Fri, 30 Oct 2002 14:19:41 GMT \n\n";

However, the page is still cached.  Do you know why this?  Do I need to install the "mod_expires" Apache module?

Thanks for your help,
Monica



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now