Hacker News new | ask | show | jobs
by Aaron1011 3083 days ago
I tried that, but found that guessing backwards from the current time works better: https://gist.github.com/Aaron1011/2595f8699ade9d4df16398a68e...
1 comments

They must have changed the response code, because I'm getting HTTP 200 on all requests

  $ curl -I https://permanent-redirect.xyz/pages/1515222320
  HTTP/1.1 200 OK
  Date: Fri, 12 Jan 2018 15:07:09 GMT
  Server: Apache
  Content-Type: text/html; charset=UTF-8
That's to be expected.

The idea behind my script is that the URL is encoding the unix time of the first visit to that URL. By starting at the current time and working backwards, the first HTTP 200 you come across should be the current page.

Ah, I see. Yes, that is definitely a smarter way of doing it.