Does 'response.clear ()' remove the contents and header?

Do I need to know if Response.Clear() just clear the contents or remove the headers? in other words, if I use Response.Clear() , do I also need to use Response.ClearHeader() or not?

+4
source share
1 answer

AS MSDN SPEAKS

The Clear method erases any HTML buffered output. However, the Clear method only erases the response body; It does not erase response headers.

To clear the header, use Response.ClearHeaders();

+7
source

All Articles