TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why does a request get sent to HN every-time I collapse/expand a comment?

3 pointsby oolongCatalmost 9 years ago
Just noticed whenever I collapse or expand a comment here on HN a request gets sent to a server. Any idea why this is happening ? And something like this just overload the servers with so many requests?

2 comments

gus_massaalmost 9 years ago
I&#x27;m not sure, but I think that the collapse&#x2F;normal state is saved in the server. If you reopen the story from another window&#x2F;browser&#x2F;computer, I think you&#x27;ll get that comment in the same state collapse&#x2F;normal. I think that this is saved for a week to keep the total save space small.<p>For an authoritative answer, you can ask the mods: hn@ycombinator.com
unimpressivealmost 9 years ago
Because it remembers your preference about the page, which is presumably too big to fit into a cookie for abritrary N pages.<p>(Also keeping it in a cookie would introduce other issues like it not working if you change computers&#x2F;browsers.)