If you add a new version of your file to IPFS, its cryptographic hash is different, and so it gets a new CID. This means files stored on IPFS are resistant to tampering and censorship β any changes to a file don't overwrite the original, and common chunks across files can be reused in order to minimize storage costs.