Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
    • Overview
    • Points of presence
    • Resource
    • Configuring Cloud CDN when the origin is unavailable
    • Origins and origin groups
      • Overview
      • TLS certificates
      • CORS
      • Content compression
    • Request redirection
    • Content caching
    • Secure tokens
    • IP-based access policy
    • Country-based access policy
    • Dedicated IP addressing
    • Location rules
    • Log export
    • Labels
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Request logs
  • Audit Trails events
  • Release notes
  • FAQ
  1. Concepts
  2. Data exchange between clients and the CDN
  3. Content compression

Content compression

Written by
Yandex Cloud
Updated at July 20, 2026
View in Markdown

You can transmit content from CDN servers to clients in a compressed format. You can enable compression in the resource settings.

GZIP compression is used. Content is sent in compressed form only if the client's request contains an HTTP header indicating gzip support: Accept-Encoding: gzip. Otherwise, an uncompressed file is sent.

Enabling content compression also helps avoid the situation where compressed files are delivered to users who had not requested compressed content. For more information, see Troubleshooting in Cloud CDN.

Files of the following MIME types can be compressed:

  • application/javascript
  • application/json
  • application/x-javascript
  • application/xml
  • application/xml+rss
  • image/svg+xml
  • text/css
  • text/html
  • text/javascript
  • text/plain
  • text/xml

The MIME type is determined by the Content-Type HTTP header value in the origin's response to the CDN server request.

Useful linksUseful links

Guide on enabling compression.

Was the article helpful?

Previous
CORS
Next
Overview
© 2026 Direct Cursus Technology L.L.C.