datespots.city runs on Cloudflare Workers. There is no traditional origin in one data center. That sounds like it should already be global by default. It isn’t, at least not for the HTML people actually read.

Here’s why I still run AWS Lambdas in 17 regions to walk the site twice a day, what that has to do with Cloudflare PoPs, and why a Worker origin still needs its cache warmed.

The traffic is already global

City hosts and countries show up together in analytics: NYC next to Tokyo, Paris next to Seoul. Requests aren’t clustered in one metro.

Analytics panels showing top datespots.city city hosts and a stack of AWS warmer IPs with nearly identical request counts
Top hosts span cities worldwide. Top IPs are the warmers: one AWS address per region, each with roughly the same ~1k request count.
Requests by country with a globe highlighting Australia at 2.11k and a ranked list led by the United States, Japan, and Australia
Requests by country. Several places sit near ~1.0-1.1k, which is what a warmer walk looks like.

That matters for caching. A page that feels fast in one place can still be cold somewhere else on the same network.

The Top IPs panel is the tell. You’ll see a stack of AWS addresses, each with roughly the same request count (~1.0-1.1k). Those aren’t random bots. They’re my warmers: one Lambda per region, each walking roughly the same URL list.

A Worker origin is not a warm global cache

People hear “Cloudflare Worker” and assume every visitor hits a warm global cache. The layers that matter for Datespots HTML are:

  • Browser: city and apex HTML use Cache-Control: public, max-age=0, must-revalidate, so the browser always revalidates. That is not the same as “always get a newly rendered page.”
  • Platform Workers Cache (tag dsc-html, CDN-Cache-Control about 12 hours fresh plus stale-while-revalidate): this is where rendered city and category HTML lives after the first fill. On a HIT, Cloudflare can serve that body and skip the Worker. Consent and apex proximity personalization run client-side via /api/consent-region/, so one HTML body per URL is enough.
  • Static assets (hashed /_astro, images): separate edge caching; often no Worker on HIT.

From Cloudflare’s docs: that edge HTML cache is still per data center. A HIT in Sydney does not copy itself to Ashburn, London, or Seoul. Each PoP keeps its own copy.

So the first browser or crawler that hits a cold PoP still pays for SSR: Worker CPU, KV/D1/R2 reads, HTML assembly. After that, that PoP can serve HIT (Worker skipped). Everywhere else is still cold until something warms it.

That’s why the Lambdas exist.

What the Lambdas do

I run a small Node function, datespots-cache-warmer, in 17 AWS regions: Virginia, Ohio, California, Montreal, Ireland, London, Paris, Frankfurt, Milan, Spain, Stockholm, Tokyo, Seoul, Osaka, Singapore, Sydney, and Melbourne.

Each invoke:

  • Pulls the current URL list from the live site sitemaps (via a small authenticated manifest on audit), then GETs those pages with bounded concurrency (25 in parallel), using a dedicated User-Agent.
  • Records where Cloudflare actually sent them (CF-Ray to a colo like IAD, LHR, SYD).
  • Posts a summary back to the audit dashboard: HIT%, TTFB, colo mix.

EventBridge fires each region twice a day UTC, staggered by a few minutes so they don’t all hit at once. Virginia starts at 00:00 / 12:00 UTC. Melbourne finishes around 01:20 / 13:20.

One Lambda invoke per region per wave, not one invoke per URL. The ~1k GETs happen inside that single run. Across the fleet that’s about 34 scheduled invokes a day. On AWS free tier, that’s cheap.

From AWS, Anycast usually sends a region to a nearby Cloudflare PoP (Virginia to Ashburn, Tokyo to Narita, Sydney to Sydney). I don’t assume that. I measure it.

Region to PoP dashboard table showing AWS regions, Cloudflare colos, HTML HIT percent, CF HIT percent, and TTFB percentiles
Region to PoP after a wave. Many PoPs are above 97% HTML HIT. Places that split across colos still show low hit rates.
Per-colo latency table listing every Cloudflare PoP observed from each AWS region with TTFB percentiles and HTML cache hit rate
Per-colo latency. Canada from Montreal splits across Toronto, Montreal, and Newark. Anycast measured, not assumed.

After a full wave, many PoPs are above 97% HTML HIT with median TTFB around 140-200 ms. Places that haven’t been filled yet, or that split across multiple colos like Canada, still show low HIT% and higher p50. That’s what the dashboard is for.

Why this helps under load

“Unlimited scale” is marketing. The setup is simpler:

  • Hot path: request hits a warm PoP, platform cache returns HTML, Worker skipped, no D1 fan-out for the page body.
  • Cold path: SSR plus data reads. Fine for a few requests. Bad if every PoP is cold and crawlers and people arrive together.
  • Assets (hashed JS/CSS, images) already use edge caching where the Worker can be skipped.

Warming doesn’t replace Cloudflare’s capacity. It moves the expensive work onto a schedule, in the background, from many regions. When real traffic shows up in Tokyo, Melbourne, or Milan, that colo already has the HTML.

What I watch

I keep an Access-gated ops page with region to PoP, HIT%, TTFB, and history by wave. Analytics for hosts, countries, and warmer IPs is how I check that the synthetic traffic looks like a deliberate walk, not a bug.

One thing that fooled me at first: a “slowest pages” list from the Virginia warmer will say IAD on every row. That’s the probe’s colo, not proof that Ashburn is uniquely broken. And a low HTML HIT% on IAD with high CDN HIT% is a different layer than Workers Cache. The matrix and per-colo tables are what tell me whether the right PoPs got warmed.

Takeaway

Workers give you compute at the edge. They do not give you one global HTML cache.

If your HTML lives in platform Workers Cache (or the Cache API), you either wait for organic traffic to fill every PoP, or you fill them yourself. I fill them myself: small Lambdas, 17 regions, two staggered walks a day, measure which PoP each region actually hits, and warm the cache before someone in Sydney or Seoul hits a cold page.