Hacker News new | ask | show | jobs
by justinhensley 3430 days ago
The trick in this solution is deciding when to flip the switch for the cached version.

Perhaps a simple GET to the URL ever 60s. If you receive 5 non-200 responses in a row, then the HN link points to the archive.is version. Same method in reverse for bringing it back.

1 comments

That sounds like it would DDoS the site. Even better: monitor the comments for "site is down", or just provide a link to google's cached version as a button (Even better than the 'web' link we have at the moment).
> That sounds like it would DDoS the site

How would one request per minute from a single server DoS the site, let alone DDoS it?