add_header works in server but not in http?

holstebm nginx-forum at
Sun May 15 07:58:26 MSD 2011

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

Posted at Nginx Forum:,198143,198147#msg-198147

More information about the nginx mailing list