5
1

How does IPFS handle updating edited files?

1mon 28d ago by lemmy.world/u/IndigoGollum in ipfs@lemmy.ml

My understanding is that if i put something on the internet, someone else could decide to copy that file and also host it so it's available from more sources than just the original one. But if that file is something that will update, for example an HTML page that's primarily a directory, how can mirrors of my file tell when i update this and also update themselves accordingly? Especially since the new file will have a different IPFS address than the old one?

As you mentioned, IPFS addresses link to a specific content that cannot change.

For changing content, there is IPNS which stays native to the IPFS ecosystem but requires you to host an IPFS node (or find and trust an IPNS provider). An IPNS key can link to one folder (or file). A kubo node can host multiple IPNS keys.

Another option is using a different protocol to distribute the latest IPFS address to your content, e.g. HTTP, Matrix, RSS, E-Mail, ActivityPub, ATProto, Git (HTTPS or SSH).