httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: cache-control
Date Tue, 04 Dec 2001 16:53:40 GMT

> 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


Mime
View raw message