With LayoutIgnoreTag you can specify that if a tag (such as <frame>) exists that mod_layout should ignore the file and not place headers or footers on it.
<VirtualHost www.foo.com:80> LayoutIgnoreTag <frame> </VirtualHost>