httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Modifying headers according to response code
Date Thu, 30 Jun 2011 00:31:18 GMT
On Wed, 29 Jun 2011 19:20:26 +0000
Michael Stevens <michael.stevens@planetoutinc.com> wrote:

> Hello,
> 
> I'd like to do this:
> 
> Set Expires and Cache-control headers to specific values on a resource when the response
code is 200.
> 
> Set those headers to different values when the response code is XXX (but not 200).

What is generating the different responses?

My suggestion: use ErrorDocument, and set your headers in its scope.

-- 
Nick Kew

Available for work, contract or permanent.
http://www.webthing.com/~nick/cv.html

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message