How to use Cloudflare with ShortPixel Adaptive Images
Note: If you're having SiteGround as your hosting provider you cannot properly set Cloudflare and use it as a CDN together with ShortPixel Adaptive Images. For more information, visit this page: CDN via Cloudflare for websites hosted at SiteGround, it this possible?
If you want to use Cloudflare as your CDN when using ShortPixel Adaptive Images, instead of ShortPixel's CDN, follow these steps:
- Enter your Cloudflare account
- Select the DNS section from the top menu.
- Add a new CNAME record from
your-domain.comshould be changed to your actual domain, and that
cdnshould be changed to something else if it's already being used. For example:
The little cloud must be orange so you can use the CDN features offered by Cloudflare.
Go to Settings > ShortPixel AI > Behaviour and enter
https://cdn.your-domain.com/spaiin the API URL field
your-domain.comwith your actual domain name.
- Replace the
cdnpart if your subdomain is different, like configured above.