Open ghost opened 7 years ago
Unfortunately the IPFS nodejs module doesn't seem to support pinning.
https://github.com/ipfs/js-ipfs#pin-not-implemented-yet
pin (not implemented, yet!)
There is an open issue here with some work on it. Possibly we should get into that and finish it to make this possible. https://github.com/ipfs/js-ipfs/pull/107
Wonder if it's pinned automatically when we do the add
. The command line tool seems to work that way.
https://www.reddit.com/r/ipfs/comments/69l1y8/does_ipfs_add_automatically_pin/
Notice the
Default: true.
at the end of the line. That means that by default, you do pin when you add.
The node will soon switch to using IPFS for content distribution #78. The default IPFS behavior caches files for a short time, but eventually deletes them. This means they will need to be redownloaded the next time they're used. There is a pinning feature that keeps files local permanently.
Pinning IPFS files will reduce latency.
Suggested by @HPrivakos.