No, it isn't a seperate request. Otherwise it wouldn't be ESI. An ESI hole is not an iframe, so you can't send headers where headers already sent.
Of course it matters. Include your code in a CMS und you will get errors.
It is not a simple include, but a ESI:include. The define for scr...