Skip to content

fix: dotted docs routes stay current after deploy - #145

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix/dotted-docs-html-cache
Aug 31, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix/dotted-docs-html-cache

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users opening a dotted docs route such as /releases/2026.8.1 could receive stale HTML for up to one year after a successful docs deployment.

Why This Change Was Made

The Worker now treats the R2 object's text/html content type as authoritative. Cached HTML responses are ignored and refreshed from R2, while non-HTML assets retain Worker caching.

User Impact

Versioned release URLs and other dotted docs routes now show the latest deployed content at their stable canonical URLs.

Evidence

  • Before the fix, the regression test returned stale instead of current.
  • npm test — 49/49 passed.
  • npx [email protected] deploy --dry-run --config wrangler.toml — passed.
  • Live pre-fix reproduction: canonical /releases/2026.8.1 returned X-OpenClaw-Docs-Cache: HIT and one-year immutable headers while a cache-busted request returned the current R2 SHA.

Follow-up to #144.

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner August 31, 2026 00:18
@Patrick-Erichsen
Patrick-Erichsen merged commit b48f8cd into main Aug 31, 2026
6 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix/dotted-docs-html-cache branch August 31, 2026 00:23
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