Skip to content

Phase 1 (#65): bump edge-cache namespace to v2 - #67

Merged
neuromechanist merged 2 commits into
feature/issue-66-epic-cold-paintfrom
feature/issue-65-edge-cache-v2
May 26, 2026
Merged

neuromechanist merged 2 commits into
feature/issue-66-epic-cold-paintfrom
feature/issue-65-edge-cache-v2

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

One-line bump of the Workers cache namespace nemar-edge-v1 -> nemar-edge-v2 in src/middleware.ts, plus an inline rationale comment.

PR #54 (the forward fix for #53) stopped new fallback HTML from being cached with SWR=86400 by tagging it Cache-Control: no-store. But entries written under the previous policy are still alive in every PoP that holds them, and continue serving as HIT for up to 24 h. The user-visible symptom today (2026-05-26): ww2.nemar.org/dataset/on005505 still renders "No description available" / "Manifest unavailable" even though the underlying data.nemar.org artifacts are healthy.

Bumping the cache namespace unreferences that entire pre-#54 fleet on the next deploy. v2 starts empty and warms up under the corrected policy.

Closes #65
Part of epic #66

Test plan

  • bun run typecheck — 0 errors
  • bun run lint — clean
  • bun run test — 370/370 pass (middleware.test.ts 23/23 green; no test changes needed — no-mocks policy precludes faking CacheStorage and the existing namespace constant has no observable behavior to test in isolation)
  • Post-deploy: curl -I https://ww2.nemar.org/discover?_t=fresh returns x-nemar-cache: MISS (v1 entries orphaned)
  • Post-deploy: https://ww2.nemar.org/dataset/on005505 no longer renders the poisoned fallback HTML
  • Post-deploy: repeat request from the same PoP within 60 s returns x-nemar-cache: HIT against the v2 entry (new namespace warms up normally)

Orphans pre-PR-#54 SWR-poisoned fallback partials still served from
PoP caches under the old namespace. Existing on005505 symptom of
"No description available" / "Manifest unavailable" goes away on
next deploy without touching the cache layer at runtime.

Closes #65
Part of epic #66
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 26, 2026 •

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: e53e982
Status: ✅  Deploy successful!
Preview URL: https://88bd5ab9.nemar-website.pages.dev
Branch Preview URL: https://feature-issue-65-edge-cache.nemar-website.pages.dev

View logs

Comment-analyzer found the rationale block named the wrong cached
keys: poisoned entries are responses from /api/dataset/<id>/readme
and /api/dataset/<id>/tree (the partial endpoints), not the SSR
/dataset/<id> page. Also add "(fixes #53)" next to "PR #54" so a
future GitHub search lands on the original bug report.
@neuromechanist
neuromechanist merged commit 44aa3e6 into feature/issue-66-epic-cold-paint May 26, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/issue-65-edge-cache-v2 branch June 21, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant