Okay, then, a little more detail. In my Server block, I had an
add_header for Cache-control. When I remove that add_header, the other
one in Http appears. If I put both in Http they both appear. If I put
both in Server they both appear but it seems that the add_header removes
the headers from the parent blocks. I don’t think that was the previous
behavior.
On Sat, May 14, 2011 at 11:58:26PM -0400, holstebm wrote:
Okay, then, a little more detail. In my Server block, I had an
add_header for Cache-control. When I remove that add_header, the other
one in Http appears. If I put both in Http they both appear. If I put
both in Server they both appear but it seems that the add_header removes
the headers from the parent blocks. I don’t think that was the previous
behavior.
add_header is inherited if there is no add_header on the current level.
This behavior was from from the very start.
I feel a little foolish. I checked the WIKI and it says “Note that it
just appends a new header entry to the output header list.” but doesn’t
say anything about the behavior you describe. I guess I hadn’t noted
this until I started moving things around so that they make more logical
sense in my config files. I had thought add_header to be cumulative
from parent to child when the headers were different (i.e. Cache-Control
in one block, X-UA-Compatible in another).
I didn’t mean to waste your time with this. I know this is a huge
project and I very much appreciate your hard work.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.