@sanae I'm 99% sure this is how Mastodon works: you get all the images, stale ones are deleted if you run the cron, they're re-fetched if somebody happens to look at the old post. (I can bring up ancient off-server posts and they do load after a brief delay.)
People have floated the idea of several servers sharing a CDN, I don't know if anything has come of the idea.