apache official documentaion says that:
• "onsuccess (default)" responses headers table → just for 2xx responses
• "always"
responses headers table → for all responses including 2xx
later it says:
always is not a superset of onsuccess
if "always headers response table" includes 2xx, how it can not be a super set of "onsuccess"?
please consider that i’ve red full document so please do not repeat quotes of apache documents, i need answer not quotings :), thanks for your time
2
Answers
i think that i can understand @ben now, since
header set
will override previous set of a certain header, so if "onsuccess" was a subset of "always" we couldn't have sth like:x-foo: baz
andx-foo: bar
simultaneouslyso the example provided by @ben actually was an example that can show us "onsuccess" table used while "always" not, because
• while we don't use any existing header it's like:
• but when you use it will be like:
You missed an import part of the statement
It is a little confusing, but if you read the documentation you linked to it does explain it.
example
Here’s my attempt to make the example from the docs more clear:
step 1 – Your Application
step 2: mod_proxy
mod_proxy sets headers in the always table and not in the default onSuccess table
apache header tables:
x-Foo: bar
step 3: mod_headers
apache header tables:
x-Foo: bar
X-Foo: baz
step 4: server response
summary
That’s the reason the doc state
and that
Again from the example, you can resolve the issue with:
mod_headers