What happens behind the scenes when we implement a dynamic header using Cloudflare

Hi Greg,

Preconditions:

  • your web app is cached by Cloudflare
  • the DNS for the domain resides on Cloudflare
  1. The user types in the URL of your app.
  2. The request goes to DNS, which is on Cloudflare.
  3. The DNS includes a record that points to the Cloudflare worker.
  4. The Cloudflare Worker makes a request to your backend and pulls in the page metadata.
  5. Cloudflare worker inserts the metadata into the page, which is cached on Cloudflare.
  6. The Cloudflare Worker displays the page.

Sorry, no bandwidth available for drawing schematics at this point.

2 Likes