I am attempting to AJAX-ify my reports in order to bypass the 100 seconds time-out that CloudFlare imposes on requests that run through its site.
See Is it possible to i
Since cloudflare does not cache html or xhr, you can greycloud a subdomain but on the server use that as an alias. For example...
In CloudFlare dns:
In your website control panel add ajax.mydomain.com as an alias.
Finally, in your code use the fqdn that hits your server bypassing cloudflare.
function ajaxReport() {
var seconds = prompt("Please enter how many seconds you want the report to run", "5");
$('#imgWaiting').show();
$.post("//ajax.mydomain.com/post/post_ajaxReport.jsp",
{
theParam:seconds
},function(data) {
$('#imgWaiting').hide();
window.location=data;
});
}
This does expose your IP address. But there should be little to no performance penalty, depending on the content returned.