5 ms·
Ask HN: Cache the frontpage links on HN?
It really annoys me when the links on the frontpage of HN are clicked on so much they overload the server of that website. What about a website/service which caches all the pages on the frontpage of HN, and throws them away after X amount of time after they disappear from the frontpage. If you think this is a good idea, me and my co-worker might create something like this.
- petercooper 13y agoI think a lot of content providers would not be keen on this as a default mode of operation. They'd lose stats, access to dynamic stuff on the page, and more. On the other hand, if HN could frequently check if a page is still responsive and, if not, then show a cached version until it's back up, that would be awesome, but given the underlying software doesn't get many updates anyway, I doubt we'd see anything like this soon.
- dutchbrit 13y agoI think it's a bad idea, mainly because I'd like to see how much traffic my site received. It occasionally happens that I want to read something here, but the server is down. In that case, I always Google the URL. So far, in all cases, Google has spidered and cached the URL I wanted to access. People would be better off optimizing their site/server. It's a good lesson to see what happens when your site gets a boost in traffic.
- deleted 13y ago[deleted]
- gkoberger 13y agoHe means cache the actual sites, not the actual front page. As for that, I think most sites are probably cached already -- something could easily just find the link to the Google cache.
- dutchbrit 13y agoI know, that's what I was implying :)
- JeroenRansijn 13y agoSometimes the articles on HN are to fresh to be cached by Google yet, it's what I use as well sometimes. But still when I'm in my flow reading the frontpage I want to see the content as fast as possible, and don't waste time on googling it etc.
- Shish2k 13y agoif(site doesn't respond) {link.domain_name = link.domain_name + ".nyud.net"}
- arb99 13y agoIt wouldn't be hard to run every submitted link through http://www.coralcdn.org/ http://www.coralcdn.org/, then if the site goes down add a comment to the thread linking to their .nyud.net address (eg http://google.com.nyud.net/ http://google.com.nyud.net/ )
- gojomo 13y agoI love Coral CDN... and could see it being a model for (or supporting-part) of a generalized cache-popular-submissions solution. But, it seems it doesn't support HTTPS sites.
- bencevans 13y agoCheck this out http://hncache.bensbit.co.uk/ http://hncache.bensbit.co.uk/
- JeroenRansijn 13y agoFantastic, although the extension doesn't work for me? Does it work for the latest Chrome?
- edent 13y agoOr, before submitting their* sites, they could do the bare minimum of 1) Use the free version of CloudFare or similar. 2) Get a web host with unlimited / high bandwidth levels. 3) If using WordPress, use one of the many cacheing plugins. I've been hit several times by being on the front page. By my estimates, that worth around 700 requests per hour (http://shkspr.mobi/blog/2012/11/whats-the-front-page-of-hackernews-worth/ http://shkspr.mobi/blog/2012/11/whats-the-front-page-of-hack...). I don't think that's excessive and using the above, my bog standard WordPress install has never fallen over. *I'm aware not all stories are submitted by their writer - but I consider the above to be best practice for any competent website owner.
- moreentropy 13y agoI think it's good when it hurts. It's better to struggle with the hacker news treatment early on and learn to cope with traffic spikes than have the same problems when your site gets mainstream coverage.
- haliphax 13y agoIf they use varnish on their end, the problem solves itself. :)