From: Eric Covener Date: Wed, 29 Dec 2010 03:32:23 +0000 (+0000) Subject: PR50525: Header always ... doesn't really mean "always" in terms of what you X-Git-Tag: 2.3.11~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca0e91b4bcb0d5a966092b00f0acbe08f97e76c1;p=apache PR50525: Header always ... doesn't really mean "always" in terms of what you can edit/merge/append/set since it only looks at r->err_headers_out and the initial value may have lived in r->headers_out. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1053523 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index e559a3c0d7..4551203a40 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -307,18 +307,32 @@ headers and output filters are run, allowing outgoing headers to be modified.

-

By default, this directive only affects successful responses (responses - in the 2xx range). The optional condition - can be either onsuccess (default) or always (all - status codes, including successful responses). A value of always - may be needed to influence headers set by some internal modules even for - successful responses, and is always needed to affect non-2xx - responses such as redirects or client errors.

- - CGI -

To manipulate headers set by CGI scripts, it is necessary to specify - always for the first parameter.

-
+

The optional condition argument determines which internal + table of responses headers this directive will operate against. Other + components of the server may have stored their response headers in either + the table that corresponds to onsuccess or the table that + corresponds to always. "Always" in this context refers to + whether headers you add will be sent during both a successful and unsucessful + response, but if your action is a function of an existing header, you + will have to read on for further complications.

+ +

The default value of onsuccess may need to be changed to + always under the circumstances similar to those listed below + Note also that repeating this directive with both conditions makes sense in + some scenarios because always is not a superset of + onsuccess with respect to existing headers:

+ +

The action it performs is determined by the first argument (second argument if a condition is specified).