Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you are experiencing 504 Gateway timeout with Azure Edgio CDN, where as AFD works perfectly with Azure Container App (which uses a custom domain).
- Is there any requirement that you would like to use Azure Edgio CDN and not Azure CDN Microsoft?
- Because CDN from MS offers raw logs and metrics in realtime.
- This diagnostic logs can be used to understand why CDN gave a 504
- You may also consider Core Reports and Custom Reports , to troubleshoot why the Edgio CDN gives a 504.
- 504 generally means that the Gatway (CDN) did not receive a timely response from the Origin which results in a time out, and it is possible that the backend itself is not responding to the HTTPS request from the CDN.
Cheers,
Kapil