On Thu, May 23, 2013 at 11:45 AM, Martijn Faassen
<
faa...@startifact.com> wrote:
> Hi there,
>
> I ran into this recently to try to trigger Chrome Frame. In the end I
> went with sending a response header instead instead of going for meta,
> but before that I hacked up this strategy:
>
> I used fanstatic.register_inclusion_renderer to register a bogus
> extension (.xua, say) with a particular renderer and a very low order
> (you can make it negative). The lower order makes this inclusion be
> sorted high up.
>
> The renderer doesn't actually do anything with its URL argument, but
> instead just returns a snippet of HTML with the X-UA-Compatible meta
> header in it.
>
> You need to then register a resource for your app with that extension
> .xua. It needs to have a file present that isn't actually used (as you
> don't refer to using your snippet), but to please Fanstatic.
>
> After this I got the meta header appear above everything else. It
> still didn't trigger Chrome Frame properly but that was possibly due
> to other issues. :)
>
> We need to have a simpler way to support this kind of stuff in
> Fanstatic though; perhaps a way to explicitly control that Fanstatic
> should insert only under existing link tags or script tags. Proposals
> and patches are welcome!