... then the question or answer are useless for future use if it contained critical information.
Actually, the site is designed so that these kinds of questions and answers are not allowed. It is required for posts to be self contained. If they rely on external resources for critical information, the post should be edited to include that information within the post itself. If a post cannot be, or is not, edited to be self contained, they are typically closed (and possibly deleted) in the case of questions, and deleted in the case of answers.
In general, a post is supposed to be useful even if the link dies, and so requiring that the links work in perpetuity is largely pointless. There's nothing wrong with providing a link that is guaranteed to work forever, but that's just a nice touch, and there's no real benefit to requiring it.
Note that there are some questions for which a link is the answer. In those cases, the link dying is actually valuable information, and so there's nothing wrong with the link not working in the future.