httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Stevens <michael.stev...@planetoutinc.com>
Subject [users@httpd] Modifying headers according to response code
Date Wed, 29 Jun 2011 19:20:26 GMT
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).

The documentation for mod_expires and mod_headers does not suggest that this is possible;
these modules allow configuration according to file matching and mime type, but not response
code.

The background:

With the release of Firefox 5, that browser is now adhering to the HTTP/1.1 specification,
which instructs clients to cache "redirect" responses (302, 307, etc.) according to Expires
and Cache-control headers. Apparently, using Apache, this means you cannot configure a particular
type of resource to be cached by the client if you routinely expect requests for that resource
to be "temporarily" redirected.

Thanks for the help,
Michael


---------------------------------------------------------------------
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