A praise of Hacker News' cache settings
2 comments
What cache settings? All I see is:
HTTP/1.1 200 OK
Cache-Control: private; max-age=0
Not an expert, but doesn't this imply that the page should refresh but isn't forced to?I believe the post is about the server-side caching, or “re-calculation” of post rankings, not client-side browser caching.
More sites used to work like this and i considered this basic cache setting but everything i checked now completely loses its state on back navigation or worse forcefully hides the things that were on the page when it was last seen to pump up engagement but totally destroying any sense of groundedness and persistence.
A nice side effect is when you read an article on the train and lose internet you can still go back and scan post titles that are interesting to read when back online. This behavior seems to be more and more broken everywhere else and its painful to watch.