With LayoutIgnoreTagFooter you can specify that if a tag (such as <frame>) exists in the file, that mod_layout will ignore placing a footer on the file.
<VirtualHost www.foo.com:80> LayoutIgnoreTagFooter <frame> </VirtualHost>