OK I have somewhat solved it, or actually solved it.
Its a ColdFusion issue. If anyone else if facing this here is what you do:
- Create an Application.cfc page.
- Add this function to your component:
<cffunction name="onRequestEnd"> <cfheader name="Content-Length" value="#Len(getPageContext().getOut().getString())#" /> <cfset getPageContext().flush()> </cffunction>
So what is happening here is that we are setting the Content-Length header to a correct size because ColdFusion messes it up if you let it do it itself. The cure to ending the never-ending page load is to put the getPageContext().flush()
after setting the Content-Length so that the browser gets all the page content.
Frankly I made it work with some Google searching and random hacking. It may not be the correct way to address the problem (because in Firebug it says there is a 500 error going on) but it seems to work.