Description #
CompressX Pro provides integration with Cloudflare CDN, which allows you to flawlessly use CompressX together with Cloudflare CDN services to convert and serve your website images as WebP/AVIF formats.

If you use a premium Cloudflare CDN service, you can also enable ‘Vary for images’ to dynamically serve correct variants, so your images will be properly loading on all browsers.
How to Enable Cloudflare CDN on CompressX Pro #
1. Access the CDN Integration page #
go to your WordPress admin dashboard > CompressX Pro > CDN Integration.

2. Connect to your cloudflare account #
Connect to your cloudflare account by entering API key or API token.

3. Enable Vary for images #
Choose whether to enable Vary for images. It is recommended to enable the option for better serving your images if you use Cloudflare premium service.

4. Configure automatic cache purging #
Choose whether to purge cache automatically after conversion.

5. Save changes #
Click Save changes to enable the CDN service.
