Reverse Proxy w/ Cloudflare

Proxying for Performance

Overview
Introduction to Reverse Proxies + Webflow
001
What Problems are we Solving?
What Problems are we Solving here?
101
The SSL Problem
102
Maximizing Site Performance
103
Staying Within Webflow's Hosting Plan Traffic Limits
104
Setup & Configurations
Proxy Configuration Approaches
201
Reverse-Proxy DNS Config
202
High Performance Configs
Proxying for Performance
300
Caching Strategy
301
Level 1 - Basic Caching
302
Level 2 - Caching + Optimization
303
Level 3 - Extended Caching + Optimization
304
Level 4 - Advanced Caching + Optimization
306
Administration
How to Determine if an Item is Cached
801
How to Remove a Cached Item
803
Emergency Revert
804
Resources
More Resources
901
No items found.
Published
October 28, 2023
Updated
October 28, 2023
in lightbox

A Reliable, Flexible Reverse Proxy, on Webflow

A huge thanks to Jakes van Eeden of Moon Milk Studio, who first introduced me to this incredibly straightforward and effective configuration approach for Cloudflare reverse proxies on Webflow.

Jakes' approach was unique from others I'd seen in that it directly addressed the SSL problem.

For the purposes of this course, everything here is designed specifically around this scenario;

  • A Webflow-hosted site, as the origin server
  • Cloudflare, as the reverse proxy

Proxying for Performance

The primary goals here are to;

  • Maximize performance of your Webflow hosted site through caching & asset optimization.
  • Minimize unnecessary traffic to Webflow's origin server, to stay within Webflow's hosting plan constraints;
  • > Basic plan - 50 GB bandwidth, 250k visitors
  • > CMS plan - 200 GB bandwidth, 250k visitors
  • > Business plan - 400 GB bandwidth, 300k visitors

We break these down into levels, which are successively more complex and which provide progressively greater caching and performance gains.

Level 1

Requires: Cloudflare Free plan

  • Caching of all webpages
  • Caching of most image assets
  • Zero cost- uses Cloudflare free plan only

Level 2

Requires: Cloudflare PRO plan ( $20/mo )

  • Image optimizations like automatic WEBP conversion and resizing
  • More specific caching control, so you can optimize different parts of your site differently

Level 3

Requires: Cloudflare PRO plan ( $20/mo )

  • Expanded caching to include
  • > Media srcset images
  • > Possibly CSS-referenced images ( backgrounds )
  • > Possibly JS-referenced images

Level 4

Requires: Cloudflare PRO plan ( $20/mo )

  • Advanced optimizations
  • Advanced tiered caching
  • Not suitable for all sites ( test thoroughly )

Exploring

Whether some images, e.g. user-uploaded images, or CMS images, are served from a separate S3 bucket

In which case, we may need paid Cassette

FAQs

Answers to frequently asked questions.

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.