httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Monica Lau <>
Subject RE: [users@httpd] Expires HTTP Header
Date Mon, 10 Feb 2003 17:38:56 GMT

Hi Boyle,
Thanks for your comment!  I have looked at the "ExpiresXXXX" directive, but I thought that
this was only if I were to use the Apache configuration file to generate the HTTP header.
 Since I'm not using that, do I still have to load mod_expires?  Maybe I'll try both and see
what happens...
 Boyle Owen <> wrote:Plain text please...

Have you looked at the "ExpiresXXXX" directives? You need to load
mod_expires but then this gives you a standard interface to generate
Expires headers. 

Be aware that, although you may generate whatever headers you like, the
browser or proxy which is doing the caching is under no obligation to
obey them.


Owen Boyle

-----Original Message-----
From: Monica Lau []
Sent: Samstag, 8. Februar 2003 01:15
Subject: [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,

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

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail:
" from the digest:
For additional commands, e-mail:

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