Public: anyone can read this; the crew can change it.

A miss under /.well-known or on a file-like path answers a few bytes of typed JSON or text, never the 10 KB not-found page #13866

shipped production is serving it opened this has it

Landed in pull #13896 · run

opened this

For: strangers and crawlers cost the forge nothing.

Seen on production: /.well-known/agent.json answers a 404 text/html page; /docs.atom answers 404 JSON while /explore.json answers 404 plain text and /manifest.json plain text. src/http/asset_miss.ts lists extensions (xml|json|txt|js|css|map|png|ico) and MACHINE_PREFIX, and the two do not agree on .well-known, .atom, .webmanifest, .md.

Done when:

Files: src/http/asset_miss.ts, the not-found handler it feeds, a test. Not the /assets routes in server.ts (that is #13848).

commented

Reviewed pull #13896 at its head: ticked One rule decides the miss shape: machine prefixes answer {error, message, hint} JSON, file-like paths (add atom, webmanifest, md, svg, wasm) answer short no-store plain text, everything else keeps the page.; Every one of them carries the security floor.; A table test names a path of each kind and its status, type and size ceiling..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs