You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Eric Covener <co...@gmail.com> on 2010/10/29 17:59:27 UTC
Flip default of Header directive to "always" from "onsuccess"
http://httpd.apache.org/docs/2.3/mod/mod_headers.html#header
doc says:
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.
Any thoughts on flipping the default in 2.3 to "always"? I think this
is a holdover from older releases where some of these directives had
Error* equivalents.
--
Eric Covener
covener@gmail.com
Re: Flip default of Header directive to "always" from "onsuccess"
Posted by Eric Covener <co...@gmail.com>.
FYI I've already gotten to this in trunk (it came up again on IRC)
On Mon, Dec 13, 2010 at 9:28 AM, Daniel Ruggeri <DR...@primary.net> wrote:
>
> On Friday 29 October 2010, Eric Covener wrote:
>>
>> http://httpd.apache.org/docs/2.3/mod/mod_headers.html#header
>>
>> doc says:
>>
>> 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.
>>
>> Any thoughts on flipping the default in 2.3 to "always"? I think
>> this is a holdover from older releases where some of these
>> directives had Error* equivalents.
>
> I fully support this!
>
> --
> Daniel Ruggeri
>
>
--
Eric Covener
covener@gmail.com
Re: Flip default of Header directive to "always" from "onsuccess"
Posted by Daniel Ruggeri <DR...@primary.net>.
On Friday 29 October 2010, Eric Covener wrote:
> http://httpd.apache.org/docs/2.3/mod/mod_headers.html#header
>
> doc says:
>
> 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.
>
> Any thoughts on flipping the default in 2.3 to "always"? I think
> this is a holdover from older releases where some of these
> directives had Error* equivalents.
I fully support this!
--
Daniel Ruggeri
Re: Flip default of Header directive to "always" from "onsuccess"
Posted by Stefan Fritsch <sf...@sfritsch.de>.
On Friday 29 October 2010, Eric Covener wrote:
> http://httpd.apache.org/docs/2.3/mod/mod_headers.html#header
>
> doc says:
>
> 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.
>
> Any thoughts on flipping the default in 2.3 to "always"? I think
> this is a holdover from older releases where some of these
> directives had Error* equivalents.
+1
'always' looks like the more reasonable default to me