Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
Yandex Cloud CDN
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Resources
      • Creating a resource
      • Editing basic settings of a resource
      • Configuring resource caching
      • Configuring log export
      • Pre-loading files to CDN servers
      • Purging resource cache
      • Configuring request and response headers
      • Configuring CORS for responses to clients
      • Configuring HTTP methods
      • Enabling file compression
      • Enabling file segmentation
      • Enabling origin shielding
      • Disabling a resource
      • Deleting a resource
    • Origin groups
      • Creating an origin group
      • Editing an origin group
      • Connecting an origin group to a resource
      • Deleting an origin group
  • Practical guidelines
    • Publishing game updates
    • Integrating an L7 load balancer with the CDN and Object Storage
    • Blue-green and canary deployment
  • Concepts
    • Service overview
    • Resource
    • Origins and origin groups
    • Exchanging data between clients and the CDN
      • Overview
      • TLS certificates
      • CORS
      • Compressing content
    • Exchanging data between the CDN and origins
      • Overview
      • Host header
      • Segmenting content
      • Origin shielding
    • Caching content
    • Exporting logs
    • Quotas and limits
  • Access management
  • Troubleshooting
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • CacheService
      • OriginGroupService
      • OriginService
      • ProviderService
      • RawLogsService
      • ResourceService
      • OperationService
    • REST
      • Overview
      • Cache
        • Overview
        • prefetch
        • purge
      • OriginGroup
        • Overview
        • create
        • delete
        • get
        • list
        • update
      • Origin
        • Overview
        • create
        • delete
        • get
        • list
        • update
      • Provider
        • Overview
        • activate
        • listActivated
      • RawLogs
        • Overview
        • activate
        • deactivate
        • get
        • update
      • Resource
        • Overview
        • create
        • delete
        • get
        • getProviderCName
        • list
        • update
  • Pricing policy
  1. Troubleshooting

Troubleshooting in Cloud CDN

Written by
Yandex Cloud
  • The CDN responds to file requests with 3xx codes (redirect)
  • The CDN responds to file requests with 4xx codes (client error)
  • The CDN responds to file requests with 5xx codes (server error)
  • Updated settings aren't applied to the resource

Below is the list of the most frequent issues with Cloud CDN and ways to resolve them.

The CDN responds to file requests with 3xx codes (redirect)

Check that the resource settings include:

  • The protocol used by the origins as the primary protocol (HTTP or HTTPS). If origins redirect requests from a URI with the http scheme to a URI with the https scheme, you must select the HTTPS protocol for the resource, and vice versa.

  • The value of the HTTP Host header from which origins don't redirect requests.

    For example, if the header value is configured as www.example.com, and the origins redirect requests with this value to example.com, change the value in the settings to example.com.

The CDN responds to file requests with 4xx codes (client error)

Make sure that:

  • End-client access to the content is allowed in the resource settings.

  • Origins return files in response to direct requests (bypassing the CDN).

  • Origins allow and correctly process requests that match the resource settings:

    • Over the specified protocol: HTTP or HTTPS.
    • With the specified value of the Host HTTP header and other headers.

The CDN responds to file requests with 5xx codes (server error)

Make sure that:

  • Origins respond to CDN server requests within 5 seconds.

  • Origins allow and correctly process requests that match the resource settings:

    • Over the specified protocol: HTTP or HTTPS.
    • With the specified value of the Host HTTP header and other headers.

Also check the Cloud CDN status on the Yandex Cloud special page.

Updated settings aren't applied to the resource

It may take up to 15 minutes for the new resource settings to apply to CDN servers. After that, we recommend purging the resource cache.

Was the article helpful?

Language / Region
© 2022 Yandex.Cloud LLC
In this article:
  • The CDN responds to file requests with 3xx codes (redirect)
  • The CDN responds to file requests with 4xx codes (client error)
  • The CDN responds to file requests with 5xx codes (server error)
  • Updated settings aren't applied to the resource