This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Enable preload on MFS commands that accept IPFS paths #2335
Closed
Description
Some MFS commands accept IPFS paths as input. When IPFS paths are passed, we should send a preload request so that the content can be retrieved.
Notably, the CID resolver in ipfs-http-response
switched to using ipfs.files.stat
instead of ipfs.object.stat
(ipfs/js-ipfs-http-response#19). This means that a JS IPFS gateway currently does not send preload requests and so is useful only for fetching content the node or the preload nodes already have in their repo.