Thank you for your reply. I have tested it. For the data restoration that is less than 100 seconds, I can run it without any issue, however for the restoration that exceeded 100 seconds, it will end with error 524 regardless of the timeout setting of my server, I understand that 100 seconds is Cloudfront standard and I have gone through the documentation, it seems I have an issue with the #4 as follow, would you please provide some details how do I implement that?
I may have to go without Cloudflare because of this issue.
- If you need to have scripts that run for longer than around 100 seconds without returning any data to the browser, you can’t run these through Cloudflare. There are a couple of options: Run the scripts via a grey-clouded subdomain or change the script so that it kicks off a long-running background process and quickly returns a status which the browser can poll until the background process has completed, at which point the full response can be returned. This is the way most people do this type of action as keeping HTTP connections open for a long time is unreliable and can be very taxing also.