Using ActiveRecord's #signed_id and .find_signed methods you can create URLs that expire Show archive.org snapshot after some time. No conditionals or additional database columns required.
#signed_id
.find_signed