TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: 'Unknown or expired link'

1 点作者 dashausbass大约 11 年前
Why does the 'more' link at the bottom give 'Unknown or expired link' at certain times?

2 条评论

ColinWright大约 11 年前
This has been discussed many, <i>many</i> times. Try searching for it in the search box at the bottom of each page.<p>However, short answer:<p>The ordering of items on a page can change, so when you open the page the ordering is created, and continuation pages are generated by closures in the code. These closures are garbage collected after a while, so if you don&#x27;t access one in a timely fashion, by the time you ask for it, it might no longer be there.<p>Garbage collections will happen more often when the system is more heavily loaded, so the time limit is effectively shorter.<p>Now, here is some background reading:<p><a href="https://hn.algolia.com/?q=unknown+expired#!/story/forever/0/unknown%20expired" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=unknown+expired#!&#x2F;story&#x2F;forever&#x2F;0&#x2F;...</a><p>You could have looked that up for yourself. Did you?
iamdanfox大约 11 年前
The overall ranking is updated every few minutes. Each front-page has a different `?fnid=xiJqLAhmD8VrsD2p21gUKn` parameter to ensure page 2 displays that ranking. Clicking the `more` link after HN has updated shows you the expired link message.<p>I guess this means they don&#x27;t have to store all the old rankings, but it does seem curious not to allow people to view old rankings.