Repository navigation
Description
Summary
Make sahajatlas.com serve the loader with the Cache-Control this repo already pins.
Part 2 — the cutover to one embed origin and the retirement of the legacy hosts — moved to #252,
which stays gated on the rewrite being stable. This ticket is Part 1 only.
The repo half has landed. public/_headers pins max-age=0, must-revalidate plus
Access-Control-Allow-Origin: * on /auto.js and /embed.js, and
tests/smoke/cache-headers.smoke.test.ts asserts it. What is left is not a repo change.
The defect
Measured 2026-10-03, on both /embed.js and /auto.js:
| Host | Cache-Control |
|---|---|
sahajatlas.com |
public, max-age=14400, must-revalidate |
sahajatlas.pages.dev |
public, max-age=0, must-revalidate |
must-revalidate survives on the custom domain while max-age does not, so our header is applied
and then rewritten. The cause is a zone-level Browser Cache TTL of 4 hours — Cloudflare's
default, which overrides origin Cache-Control on a custom domain. *.pages.dev is not in the
zone, which is why every check this repo runs sees the correct value.
Four hours of freshness without revalidation, on the one unhashed file hosts hardcode, is the
failure docs/embedding.md §"Updates and caching" warns about: a stale loader imports
content-hashed chunk names the CDN no longer serves, and those 404s kill the widget with no
fallback.
The fix is a dashboard action
Set Browser Cache TTL to "Respect existing headers" on the sahajatlas.com zone. No file in
this repo can do it, and no run of the loop can either — it needs a human in the Cloudflare
dashboard.
⚠ A preview deploy cannot verify this. A preview is *.pages.dev, outside the zone, where the
override does not apply. This ticket's original first criterion asked for exactly that, and is
corrected below. #244's lane, which reads sahajatlas.com itself, is what observes it.
Acceptance criteria
- Browser Cache TTL on the
sahajatlas.comzone is "Respect existing headers". -
curl -sI https://sahajatlas.com/auto.jsreturnscache-control: public, max-age=0, must-revalidateandaccess-control-allow-origin: *. Same for/embed.js. -
public/_headerspins both headers on both entry files, rather than leaving a rendering requirement on a platform default. - A smoke spec covers the loader's content type and
Cache-Control, asserting on content, never status (_redirectsanswers 200text/htmlfor any path, so a status check passes against a missing file) —tests/smoke/cache-headers.smoke.test.ts.
Non-defects, recorded so they are not "fixed" later
embed.jsalready returnsaccess-control-allow-origin: *on every 200 host. Pinning it is hardening, not a fix.- The legacy hosts serving an old build is intended, for as long as the rewrite is unreleased. That is chore(build): cut every client over to sahajatlas.com and retire the legacy hosts #252's problem, not this one.
Files affected
- Cloudflare dashboard — the
sahajatlas.comzone. Nothing in this repo.
References
- chore(build): cut every client over to sahajatlas.com and retire the legacy hosts #252 — Part 2, the cutover and the legacy-host retirement
- chore(ci): nothing automated observes the production deploy, only a preview #244 — the lane that reads
sahajatlas.com, where these two specs fail today - feat(widget): split the embed into a smart loader and an element bundle #149 — the loader split, which named the two entry files the rule covers
public/_headers— the pinned rule and the comment stating why it existsdocs/embedding.md§"Updates and caching" — the stale-loader failure mode.claude/reports/whitelabel-seo-program.md§1.4 — the 2026-08-14 estate measurement
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsNo status
Activity
[-]fix(build): consolidate the embed origin and pin the loader cache[/-][+]chore(build): prepare sahajatlas.com and cut over the embed origin[/+]fix(build): pin the entry files to revalidate instead of going stale
fix(build): pin the entry files to revalidate instead of going stale
fix(build): pin the entry files to revalidate instead of going stale
fix(build): pin the entry files to revalidate instead of going stale
fix(build): pin the entry files to revalidate instead of going stale (#…
feat(widget)!: route through a query parameter and remove hash routing (
refactor(event): namespace the calendar UID to the CMS, not the widge…
refactor(event): namespace the calendar UID to the CMS, not the widge…
feat(ui): de-brand the widget and keep host CSS out of it (#158)
5 remaining items
sydevs-bot commentedon Oct 5, 2026
🤖 no session running
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
[-]chore(build): prepare sahajatlas.com and cut over the embed origin[/-][+]chore(build): stop the sahajatlas.com zone overriding the loader's Cache-Control[/+]sydevs-bot commentedon Oct 5, 2026
Split as asked.
sahajatlas.comzone. No file in this repo can do it.I also corrected the criterion that asked for verification on a preview deploy. A preview is
*.pages.dev, outside the zone, so it cannot show the override. #244's lane readssahajatlas.comand is what observes it.Part 1's repo half is already on
main, so both its code criteria are ticked:public/_headerspinsmax-age=0, must-revalidateand CORS on/auto.jsand/embed.js, andtests/smoke/cache-headers.smoke.test.tsasserts it on content. This ticket needs no PR — only the dashboard change.🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
Ardnived commentedon Oct 6, 2026
Browser Cache TTL on the
sahajatlas.comzone is now "Respect Existing Headers" (set in the dashboard). Verified 2026-10-05:cache-controlaccess-control-allow-origincontent-typehttps://sahajatlas.com/auto.jspublic, max-age=0, must-revalidate*application/javascripthttps://sahajatlas.com/embed.jspublic, max-age=0, must-revalidate*application/javascriptAll acceptance criteria are met. Part 2 continues in #252.
Generated by Claude Code
docs(testing): record the lane green on the custom domain
ci(smoke): a red production read opens its own ticket
fix(docs): the smoke lane is 17 cases, not 16
chore(build): move the Ladle playground to Cloudflare Workers (#294)
fix(widget): serve country flags from our own origin, follow the loca…