X-CDN Header

Learn how the X-CDN Header adds CDN-specific information to origin requests in the Medianova Control Panel.

The X-CDN Header feature adds an X-CDN header to requests that are forwarded from the CDN to your origin. This allows your origin to identify that the request is coming through Medianova CDN, which can be useful for logging, routing decisions, and origin-side analytics.

This feature does not modify the response returned to the viewer and does not affect caching or delivery logic.

How X-CDN Header Works

You can configure X-CDN Header in the Medianova Control Panel or via API

When the X-CDN Header toggle is enabled:

  • The CDN adds the X-CDN header to the origin request during the fetch operation.

  • Your origin receives every request with this header included.

  • The header allows your origin to distinguish CDN-proxied traffic from direct client traffic.

  • The behavior applies to all request types because insertion occurs before the origin fetch.

This feature is passive and does not alter cache decisions, TTL behavior, Page Rules, or viewer-facing responses.

X-CDN Header configuration area inside the Headers tab

Use Cases

Origin-side analytics

Log whether a request came through the CDN layer by checking for the X-CDN header.

Conditional behavior at the origin

Apply specific logic (e.g., rate limits, routing decisions, request tagging) based on the presence of this header.

Debugging origin fetches

Verify that requests are reaching your origin through the CDN, especially when diagnosing caching or routing flows.

Notes

  • The header is inserted only on the origin request.

  • It is not visible to clients and does not appear in viewer-facing responses.

  • Header values may differ based on internal CDN configuration.

  • Enabling the header does not change caching rules, request normalization, or delivery performance.

Last updated

Was this helpful?