httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Owen <co...@riverdeep.net>
Subject RE: cache-control
Date Wed, 05 Dec 2001 09:24:57 GMT
thanks Joshua, thats working now

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: 04 December 2001 16:54
To: users@httpd.apache.org
Subject: RE: cache-control



> From: Carl Owen [mailto:cowen@riverdeep.net]

> Cache-Control: max-age=3600, must-revalidate
>
> but even though I've loaded both the "expires" and "headers" modules
> (uncommented the relevant LoadModule lines in httpd.conf), this
> does not work (i.e. I've included this line at the end of the "httpd.conf"
> file and I get the error "Invalid command: Cache-Control").
>

Please see
http://httpd.apache.org/docs/mod/mod_headers.html

You can't simply type the header into httpd.conf.  You need to add something
like
Header set Cache-Control "max-age=3600, must-revalidate"

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message