IPFS caches popular sites but forgets those that are unused. Sure link rot won't happen, but it's highly likely no-one will bother caching for 500 years. Of course, IPFS almost certainly won't be around then and what we're using today tech-wise will be as ancient to them as the loom is to us.
Edit: Perhaps, of course, JavaScript :P