If you know that the CloudFlare edge will wait for an HTTP response from the server for exactly 100 seconds, you can simply set a timeout of 100 seconds for ajax request. And retry the request after a timeout.
Alternatively, you can move this request to a subdomain that is not under the cloud flash proxy.
Another idea is to use a reverse proxy and add CORS headers. In apache which will
<LocationMatch "/ajax-request-used-in-js"> ProxyPass http://example.com/ajax Header add "Access-Control-Allow-Origin" "*" </LocationMatch>
Pawel dubiel
source share