Content compression
Written by
Updated at July 9, 2025
You can transmit content from CDN servers to clients in a compressed format. You can enable compression in the resource settings.
GZIPAccept-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.