Ask HN: How does the HN "More" link work?
I noticed today, for the first time, that the "More" link at the bottom of the HN front page was not just a javascript trigger, nor was it a canonical link to something like "news.ycombinator.com/news/2", but was a link which populates a variable called "fnid" with what appears to be a randomly generated value.
In my case the link, the last time I looked, was "http://news.ycombinator.com/x?fnid=D6dWUUC7t3".
This came to my attention because, after getting pulled away from my screen for about 30 minutes to take care of some other items, I came back to review the listed news, and then hit "More" to see the 2nd page of results. When doing this I got an "Expired Link" message, which prompted me to look closer at the link itself.
Can anyone give any insight into how HN handles pagination and what that FNID variable really indicates?
7 comments
[ 3.4 ms ] story [ 29.7 ms ] threadIn other words, the function fetches a particular group of articles along with the current information about them and generates the page. Some of those articles were known at the time the function was generated. Some of the articles are new or have undergone a significant change in status since the function was generated - I suspect these incur greater overhead.
At a certain point, the number of changes are are large enough that it is more efficient to generate a new function.
Essentially I'm asking if all of us see the same stuff at the same time.
1 - Make the expiration longer at least 90 minutes.
2 - Go to the next more page independent if the items have scrolled.
3 - at least go to the main page of hacker news.
It's also been like this for years, so presumably PG doesn't care enough about the usability to change it.
This type of thread comes up every month or two, someone explains how/why it happens and then we go back to having the same, broken interface. I doubt it will ever be fixed.