Files
ingress/pkg
zeekayandHanzo Dev 5301c301c0 staticFiles: a dot in a path segment is not a file extension
The route ladder was gated on looksLikeAsset, which decides from path.Ext. That
predicate is right about "/chunk-abc123.js" and wrong about a URL segment that
merely contains a dot: "/models/z-ai/glm-5.2" has extension ".2", and
"/models/meta-llama/llama-3.2-1b-instruct" has ".2-1b-instruct". Both are pages.
Measured live on hanzo.ai: 181 of 773 routes 404d — every model page carrying a
version number — while the dotless ones served.

The gate is removed rather than made cleverer. No pattern reliably separates a
page from a file by name, and the ladder never needed it: it asks for ONE exact
file per candidate and never falls back to a shell, so it has nothing to mask
anything with. A missing chunk looks for "nope.js.html" and "nope.js/index.html",
finds neither, and is still a bare 404 — now guaranteed by construction instead
of by a guess.

looksLikeAsset keeps gating SPA mode, which is where the risk actually lives:
that path answers with the shell for anything, so it is the one that must never
answer an asset request.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-05 16:58:11 -07:00
..
2026-07-26 10:12:56 -07:00
2026-01-16 09:13:54 +01:00
2026-07-26 10:12:56 -07:00
2026-01-16 09:13:54 +01:00
2026-01-16 09:13:54 +01:00