Webflow sync, pageviews & more.
NEW

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

Using Cloudflare with Webflow can help optimize performance, improve security, and cache assets like images more effectively. However, since Webflow uses its own CDN for assets, special configuration is needed to ensure Cloudflare properly caches content while maintaining Webflow’s functionality.

1. Set Up Cloudflare for Your Webflow Site

  • Add your domain to Cloudflare: Sign up or log in to Cloudflare, then add your Webflow domain.
  • Update DNS records: Ensure the following A records point to Webflow’s IPs:
  • A record for root domain (@) → (a) 75.2.70.75, (b) 99.83.190.102
  • CNAME record for wwwproxy-ssl.webflow.com
  • Enable "Proxied" mode (orange cloud) for these DNS records to route traffic through Cloudflare’s network.

2. Configure Cloudflare SSL Settings

  • Go to Cloudflare Dashboard → SSL/TLSOverview.
  • Set SSL/TLS Mode to "Full" or "Full (Strict)" to ensure end-to-end encryption.
  • Disable “Always Use HTTPS” in Cloudflare if it conflicts with Webflow’s built-in SSL handling.

3. Optimize Content Caching

  • Go to Cloudflare Dashboard → CachingConfiguration.
  • Set Cache Level to "Standard" so HTML is served dynamically while static assets like images are cached.
  • Create a Page Rule for aggressive caching:
  • Go to Cloudflare Dashboard → RulesPage RulesCreate Rule.
  • URL: yourdomain.com/*
  • Enable**“Cache Everything”** but be aware that this may cause issues with Webflow’s dynamic content.
  • Set Edge Cache TTL to a reasonable time (e.g., 1 day) to keep assets cached longer.

4. Enable Performance Optimizations

  • Go to Cloudflare Dashboard → Speed.
  • Enable Auto Minify (HTML, CSS, JavaScript) to reduce file sizes.
  • Enable Brotli Compression for faster asset delivery.
  • Under Optimization, turn on Rocket Loader cautiously, as it may affect Webflow’s custom JavaScript execution.

5. Protect Against Excessive Caching Issues

  • Some Webflow updates might not immediately reflect due to aggressive caching. If changes aren’t appearing:
  • Clear Cloudflare’s cache from Dashboard → CachingPurge CachePurge Everything.
  • Disable Caching for Webflow Editor using a Page Rule:
    • URL: yourdomain.com/?edit*
    • Disable Caching and Performance Optimizations.

Summary

To integrate Webflow with Cloudflare, update your DNS settings, configure SSL, tune caching rules, and enable performance optimizations. Use Page Rules to fine-tune behavior, and periodically purge cache when making content updates.

Rate this answer

Other Webflow Questions