How to use Cloudflare with ShortPixel Adaptive Images

NoteIf 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:

  1. Enter your Cloudflare account
  2. Select the DNS section from the top menu.

  3. Add a new CNAME record from cdn.your-domain.com to no-cdn.shortpixel.ai": 

    Remember that your-domain.com should be changed to your actual domain, and that cdn should be changed to something else if it's already being used. For example:
    - images.myblog.com
    - media.thebestshop.com

    The little cloud must be orange so you can use the CDN features offered by Cloudflare.

  4. Go to Settings > ShortPixel AI > Behaviour and enter https://cdn.your-domain.com/spai in the API URL field

    1. Replace your-domain.com with your actual domain name.
    2. Replace the cdn part if your subdomain is different, like configured above.

Please notice that we are not responsible for any changes made by Cloudflare that would invalidate the previous steps. Therefore, if you encounter any issues while creating your new CNAME in your DNS records, please contact your CDN provider.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us