Welcome! Log In Create A New Profile

Advanced

Re: add_header works in server but not in http?

May 15, 2011 08:54AM
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.


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

add_header works in server but not in http?

holstebm May 14, 2011 11:46PM

Re: add_header works in server but not in http?

holstebm May 14, 2011 11:58PM

Re: add_header works in server but not in http?

Igor Sysoev May 15, 2011 08:54AM

Re: add_header works in server but not in http?

holstebm May 15, 2011 10:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready