I am not sure if it's a bug or I am doing something incorrectly, but it looks like when I try to use "merge" for custom headers (through "Context" feature), instead of merging the headers, it appends the new values.
Simplest example, which does work in Apache: I want to ensure that "Vary" header always have "Origin,Save-Data,Accept-Encoding", which by default is not the case. By default, images have only "Accept-Encoding" at best (usually they do not have anything) and regular pages have "Save-Data,Accept-Encoding". I could use "set", but I have some dynamic pages, that may have their own "Vary", which I want to preserve and thus only add the missing values.
With Apache, I've just used "Header merge vary Origin,Save-Data,Accept-Encoding" and it worked perfectly, providing
Yes, sometimes, it changed the order, but that's not a problem. The point is, that the "Origin" value, that was missing from default was added.
With OLS, though, I get this:
which looks an awful lot like result of "append", rather than merge, which is definitely not expected.
So, is this a bug? Or am I missing some setting somewhere that prevents proper merger?
If someone knows of a possible workaround for this, that would be good for me, too.
Simplest example, which does work in Apache: I want to ensure that "Vary" header always have "Origin,Save-Data,Accept-Encoding", which by default is not the case. By default, images have only "Accept-Encoding" at best (usually they do not have anything) and regular pages have "Save-Data,Accept-Encoding". I could use "set", but I have some dynamic pages, that may have their own "Vary", which I want to preserve and thus only add the missing values.
With Apache, I've just used "Header merge vary Origin,Save-Data,Accept-Encoding" and it worked perfectly, providing
Yes, sometimes, it changed the order, but that's not a problem. The point is, that the "Origin" value, that was missing from default was added.
With OLS, though, I get this:
which looks an awful lot like result of "append", rather than merge, which is definitely not expected.
So, is this a bug? Or am I missing some setting somewhere that prevents proper merger?
If someone knows of a possible workaround for this, that would be good for me, too.