Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Service page
Yandex Cloud CDN
Documentation
Yandex Cloud CDN
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics for the EdgeCDN provider
  • Monitoring metrics for the Yandex Cloud CDN provider
  • Audit Trails events
  • Release notes
  • Troubleshooting

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 failed to apply to the resource
  • The CDN resource has the Not active status, preventing content delivery to users
  • Unable to configure the TLS certificate
  • The CDN sends compressed files to users who do not request compressed content

Troubleshooting in Cloud CDN

Written by
Yandex Cloud
Updated at August 26, 2025
  • 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 failed to apply to the resource
  • The CDN resource has the Not active status, preventing content delivery to users
  • Unable to configure the TLS certificate
  • The CDN sends compressed files to users who do not request compressed content

Below is the list of common issues with Cloud CDN and ways to fix them.

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

Make sure to specify the following resource settings:

  • Protocol used by the origins as the primary one (HTTP or HTTPS). If origins redirect requests from http URIs to https URIs, select HTTPS for the resource, and vice versa.

  • Host HTTP header value to which origins respond without redirects.

    For example, if the header value is set to www.example.com, and 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)The CDN responds to file requests with 4xx codes (client error)

Make sure that:

  • The resource settings allow end-user access to content.

  • 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)The CDN responds to file requests with 5xx codes (server error)

Note

CDN servers do not support IPv6 and can only access sources at IPv4 addresses.

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 here.

Updated settings failed to apply to the resourceUpdated settings failed to apply to the resource

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

The CDN resource has the Not active status, preventing content delivery to usersThe CDN resource has the Not active status, preventing content delivery to users

Resources can show as Not active due to receiving no user requests for 90 days or being deactivated manually. To make them active again, enable End-user access to content in the basic resource settings. To enable or disable resources, you need the cdn.editor role or higher.

Unable to configure the TLS certificateUnable to configure the TLS certificate

Note

We no longer support the automatic issue of Let's Encrypt® certificates for CDN resources.

Certificates from Yandex Certificate Manager are supported. You can issue a new Let's Encrypt® certificate or upload one of your own.

The certificate must be located in the same folder as your CDN resource.

Below is an example of a CLI error you receive when the certificate and the CDN resource reside in different folders:

ERROR: operation (id=bcdb6qaiw8mb********) failed: rpc error: code = InvalidArgument desc = folder ids of user and certificate don't match; operation-id: bcdb6qaiw8mb********

The CDN sends compressed files to users who do not request compressed contentThe CDN sends compressed files to users who do not request compressed content

Cloud CDN may send compressed files even if a user does not request compressed content. This may happen in the following cases:

  1. First request from the client for the file not yet in the CDN cache had the Accept-Encoding: gzip header. The same header is provided to the origin.
  2. The origin transfers the compressed file to the CDN cache but does not add the Vary: Accept-Encoding header. For example, this happens if you set an Object Storage bucket as the origin.

In this case, the CDN cache saves the compressed file, which all clients will receive. Also, it is irrelevant whether their devices support compression or whether they add the Accept-Encoding: gzip header to their requests.

To avoid this, enable file compression. This way, Cloud CDN will always request non-compressed content from the origin, and if the client request has the Accept-Encoding: gzip header, it will compress files on its own without sending the header to the origin.

Was the article helpful?

Previous
Release notes
© 2025 Direct Cursus Technology L.L.C.