Push files to ipfs network

Help
How do I manually push files to the entire IPFS network?
I tested the Add file to the local IPFS node file and it will not sync to other nodes right away.

By default, people will need to know the content hash in order to retrieve it, upon which the IPFS node will search throughout the network for the closest peer with the available content. You can however announce to the network that you are a provider of a particular content hash using ipfs dht provider <key>

this cmd Does synchronize files? just announce

You can’t “push” files to the network. Nodes only store files that they’ve either added locally or have chosen to download from the network.

It will be mirrored on http://ipfs.io if you request a hash through their public gateway – e.g. https://ipfs.io/ipfs/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o – but that’s not permanent

“cached” is a better description than “mirrored”. ipfs.io is closer to cloudflare than anything else.

1 Like

public gateway How long is the cache?

Currently we run GC once every 12h on the gateway running at ipfs.io. But don’t assume this won’t change. I think the more traffic the gateways will get, the shorter we’ll keep things around, so don’t use the “cache on public gateway” hack for things you want to make sure are online, because they will be removed eventually.