Response.Clear ();
If you have already written something to the buffer, you need to clear it so that extraneous content is not included.
Response.ClearHeaders ();
If the content type was previously specified, for example, you probably don't want this. Any number of HTTP headers may already be set, another good example is cache management.
Response.Buffer = false;
It makes no sense to buffer the output, if you are ready to upload the file, just send it and do not lose memory.
source share