Skip to content

Static uptime probe at /ratchet - #95

Merged
adamXbot merged 1 commit into
websitefrom
ops/health-probe
Nov 3, 2026
Merged

adamXbot merged 1 commit into
websitefrom
ops/health-probe

Conversation

@adamXbot

@adamXbot adamXbot commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Why

Blackbox at the house has probed this site's homepage every couple of minutes since 2 November. Each probe renders the page in the Worker (13 to 28 ms of CPU), and that steady rhythm is what tripped the Workers Free plan's 10 ms limit (error 1102, served as 503) on org.orbari.app and fxcss.com. Real visitors never did; the per-day termination count was zero on every site before the probing started.

No asset path is common to all five vinext sites, and a probe for a path that does not exist falls through to the Worker's full page render, so this adds one by construction.

What

  • public/ratchet answers clank (a PlayStation call-and-response in place of ping/pong). A static file is served before the Worker runs, so a probe costs no CPU.
  • public/_headers types it text/plain; charset=utf-8, keeps it uncached (no-cache, max-age=0, must-revalidate) so every probe reaches the asset store rather than an edge cache, and marks it noindex.
  • A test asserts the file and its rule are in the built bundle (and, where the suite runs the built Worker, that wrangler serves it with those headers).

After merge

  1. Deploy as usual (just deploy, or the Deploy workflow); the merge alone does not publish it.
  2. Point the Blackbox target at https://fxcss.com/ratchet and expect body clank. Keep a homepage probe only at a long interval (15 min) if you want a render check.

just check passes locally on Node 26.10.

🤖 Generated with Claude Code

Blackbox probes the homepage every couple of minutes, and each probe renders
the page in the Worker; that rhythm tripped the Workers Free plan's 10 ms CPU
limit. A static file is answered before the Worker runs, so it costs nothing.
public/_headers types it, keeps it uncached so each probe reaches the asset
store, and hides it from search. The test checks the built bundle.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@adamXbot
adamXbot merged commit 13d5685 into website Nov 3, 2026
3 checks passed
@adamXbot
adamXbot deleted the ops/health-probe branch November 3, 2026 14:11
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