What kind of headers are you talking about? HTTP headers? That has nothing to do with what kinds of images or objects you embed (or don't embed) in a page.
I'm not sure what you mean when you say the "other" way would be to dynamically embed the ads in the page. That's the only sensible way I can think of to do it. What was the first way?