It looks like cfajaximport does not honour the cfcontetn reset = 'yes' attribute. Try the following code...
<cfcontent reset="yes" type="text/plain">
<cfoutput>#Now()# is the time</cfoutput><cfabort>
Even though we've reset the html stream with cfcontent reset, the cfajaximport headers are still shown in the output, I'm guessing that it is applied after the fact by coldfusion, but this is now CORRUPTING any output that is not CF output (CSVs, PDFs, anything not html).
Bug or feature? I need a workaround (putting it at the bottom of page doesn't help as it needs to be before any calls to ajax functionality).
At the bottom of the page is a function made by Elliott Sprehn to
clear the that output :
I learned something new today from this post
(especially from the comments).