httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Monica Lau <>
Subject [users@httpd] Expires HTTP Header
Date Sat, 08 Feb 2003 00:15:10 GMT

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,

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