We use ASP.Net 4.0. In our code we regularly use Response.AddHeader("x", "y"). Is this exactly the same as Response.AppendHeader("x", "y")? I read that AppendHeader only exists for compatibility with classic ASP, which we do not use.
Can we, without any concerns, replace AddHeader with AppendHeader?
They are the same, so yes, you can replace
HttpResponse.AddHeaderwithHttpResponse.AppendHeader.From MSDN
A quick peek with Reflector confirms that
HttpResponse.AddHeaderjust callsHttpResponse.AppendHeader.