> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/origin-settings/origin-response-timeout.md).

# 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 response timeout for requests sent from the CDN to the origin. If the origin does not respond within the configured duration, the CDN returns a **504 Gateway Timeout**.

You can manage Origin Response Timeout in the [Medianova Control Panel](https://cloud.medianova.com) or via the [Origin Settings API](https://clients.medianova.com/api-documentation/performance-cdn/origin-settings#put-api-v1-cdn-organization_uuid-resource-resource_uuid-5).

{% hint style="info" %}
**Origin Settings** is available for CDN Resources that use **My origin** as the content source. The section is not displayed when **Object storage** is selected.
{% endhint %}

## Configure Origin Response Timeout

Set the maximum duration the CDN waits for the origin to respond.

{% stepper %}
{% step %}

### Open Origin Settings

Open your CDN Resource and select **Origin Settings**.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FYnI0JbNli1aCdcdjVRhB%2Fimage.png?alt=media&amp;token=36131539-3825-4d22-9df4-bb98382570e1" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Set the Response Timeout

Under **Origin Response Timeout**, configure how long the CDN should wait for the origin to respond.

You can adjust the value using the **−** and **+** controls or select one of the available preset values:

* **15s**
* **30s**
* **60s**
* **120s**
  {% endstep %}

{% step %}

### Save the Configuration

Select **Save** in the pending changes bar.

Review the pending changes and confirm the update to apply the configuration to the CDN Resource.
{% endstep %}
{% endstepper %}

## Timeout Behavior

The configured value determines how long the CDN waits for the origin to respond.

If the origin does not respond within this duration, the CDN returns a **504 Gateway Timeout**.

Choose a timeout value appropriate for the expected response time of your origin. Increasing the timeout allows more time for slower origin responses, while decreasing it causes unresponsive origin requests to time out sooner.

## Troubleshooting

If clients receive **504 Gateway Timeout** responses:

* Verify that the origin server is reachable from the CDN.
* Check whether the origin can respond within the configured timeout.
* Review origin performance and response times.
* Adjust **Origin Response Timeout** if the origin legitimately requires more time to respond.

## Related Concepts

* [HTTP Response Codes](/getting-started/concepts/http-response-codes.md)
* [Advanced Origin Settings](/products/performance-cdn/static-content-delivery/advanced-configuration/origin-settings/advanced-origin-settings.md)
* [Origin Settings API](https://clients.medianova.com/api-documentation/performance-cdn/origin-settings)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/origin-settings/origin-response-timeout.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
