by orf · 9y ago · 0 comments
Any change to the contents of your directory causes the root hash to change and the IPNS mapping is republished.
Mappings a numbered so when looking up a store via it's ID nodes will always use the most recent mapping they can find.
Republishing the IPNS root breaks the caching that accumulated on the root, but all objects inside the directory that haven't changed retain their caching.
It does mean that one of the benefits of using IPFS - the seeding of data - only works when there aren't frequent changes to a store. The idea is setting a store up and being able to go offline for a few days while others seed, then when you come back online and make changes, the new changes need to get re-seeded again.