Enabling WebP Compression on CDN¶
You can configure the level of WebP compression by setting VSHCDN-WEBP-QUALITY header on the backend. The accepted values are between 1 and 100. If it falls outside this range, the CDN will use the default value of 80. To set the level of compression to 90%, you can configure the header in Nginx as following:
add_header VSHCDN-WEBP-QUALITY 90;
The CDN will use the new setting when if fetches the image, usually after if expires from the cache. You can selectively purge it in the CDN administration interface.