All pages
Powered by GitBook
1 of 1

Loading...

Origin Response Timeout

Learn how to configure Origin Response Timeout to control how long the CDN waits for your origin to respond.

Origin Response Timeout defines the maximum time the CDN waits for an HTTP(S) response from your origin server. If the origin does not respond within the configured duration, the CDN returns a 504 Gateway Timeout.

Adjusting this timeout helps maintain predictable performance and prevents long wait times caused by slow origin responses.

You can manage Origin Response Timeout using the Medianova Control Panel or API.

In the Medianova Control Panel, go to CDN Resources, select your resource, and navigate to Origin Settings.

Configure Origin Response Timeout

Follow the steps below to set the timeout duration.

1

Set the Timeout Duration

Enter a timeout value between 5 seconds and 300 seconds.

The CDN will wait for the origin response up to the duration you specify.

2

Timeout Behavior

  • The CDN waits for the origin to respond for the configured duration.

  • If the timeout is reached, the CDN returns 504 Gateway Timeout to the client.

  • Lower values improve failover speed; higher values allow slow origins more time to respond.

Recommended Settings

  • 5–30 seconds: Fast origins or latency-sensitive applications

  • 30–120 seconds: Moderate response times or variable workloads

  • 120–300 seconds: Heavy processing at the origin (reports, large queries, image generation)

Troubleshooting

Issue: Clients receive 504 responses. Cause: Origin cannot respond within the configured timeout. Fix: Increase the timeout value or optimize origin performance.

Issue: Requests feel slow before failing. Cause: Timeout value is set too high. Fix: Reduce the timeout to a more suitable duration.

Save the Configuration

Click Submit to apply the timeout value. The new timeout setting takes effect immediately.