GZIP Compression in Vultr CDN Pull Zones reduces the size of your content before it is delivered to users. This feature enhances the efficiency of data transfer, leading to faster load times and improved overall site performance. By compressing your content with GZIP, you ensure that your users experience quicker access to your site, optimizing both bandwidth usage and user satisfaction.
Follow this guide to enable the GZIP compression feature for Vultr CDN Pull Zones on your Vultr account using the Vultr Customer Portal, API, or CLI.
Send a GET
request to the List CDN Pull Zones endpoint and note the target Pull Zone subscription's ID.
$ curl "https://api.vultr.com/v2/cdns/pull-zones" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update CDN Pull Zone endpoint to enable gzip compression feature for your target Pull Zone subscription.
$ curl "https://api.vultr.com/v2/cdns/pull-zones/{pullzone-id}" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"gzip": true
}'
List all available CDN Pull Zones subscriptions and note the target Pull Zone subscription's ID.
$ vultr-cli cdn pull list
Enable gzip compression feature for your target Pull Zone subscription.
$ vultr-cli cdn pull update <pullzone-id> --gzip
No comments yet.