How can I use Cloudflare with Webflow to optimize and proxy all content, including Webflow files such as images, for improved site speed and performance?

TL;DR
  • Create a Cloudflare account, add your Webflow domain, and let Cloudflare scan DNS records.
  • Access Webflow hosting settings to copy A records, then configure Cloudflare DNS by adding these records and enabling Proxy.
  • Set SSL/TLS to Full, enable HTTPS, use caching, image optimization, and minify JavaScript, CSS, and HTML for improved performance.

To integrate Cloudflare with Webflow to enhance site speed and performance, you can follow a series of steps to proxy and optimize all content, including Webflow files like images.

1. Set Up Cloudflare Account and Add Your Domain

  • Create an Account: If you haven't already, register on Cloudflare's website.
  • Add Domain: Log in to Cloudflare, click on "Add a Site", and input your Webflow domain.
  • DNS Scan: Cloudflare will scan your domain’s DNS records.

2. Update Webflow Domain DNS Settings

  • Go to Webflow Hosting Settings: Access your project settings in Webflow and navigate to the hosting tab.
  • Copy A Records: Note the A records provided by Webflow; typically (a) 75.2.70.75 and (b) 99.83.190.102.

3. Configure DNS in Cloudflare

  • Delete Old Records: Remove existing A records if necessary.
  • Create New A Records: Add the Webflow A records in Cloudflare's DNS management tab.
  • Proxy Status: Ensure that the Proxy status is enabled (orange cloud icon) for the new A records.

4. Adjust SSL/TLS Settings

  • SSL/TLS Mode: Set it to Full or Full (strict) to properly secure the connection between Cloudflare and Webflow.
  • Always Use HTTPS: Enable this setting to redirect all HTTP traffic to HTTPS.

5. Optimize Performance Settings

  • Caching: Utilize Cloudflare's caching by enabling Automatic Platform Optimization for better speeds.
  • Image Optimization: Turn on Polish and Mirage under the Speed tab in your Cloudflare dashboard for image compression and lazy loading (mentions loading="lazy").
  • Minification: Enable Minify settings for JavaScript, CSS, and HTML in the Speed section.

Summary

By integrating Cloudflare with Webflow and updating your DNS settings to Cloudflare's, you can enhance your site’s performance. Ensure DNS records point to Webflow’s servers, enable Proxy status for better content delivery, and use Cloudflare's optimization features for improved speed.

Rate this answer

Other Webflow Questions