You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
(iiuc) an incoming request for /ipfs/cid/subpath/file?format=raw is translated to backend request for /ipfs/cid/subpath/file?format=car&dag-scope=block and the returned CAR includes blocks for traversing /cid → /subpath and then the root block of /file.
When a block for CID is requested directly (no subpath) we are wasting resources on CAR wrapping.
Proposed improvement
If requested format is a single block (application/vnd.ipld.raw), and there is no subpath (only direct CID /ipfs/cid), bifrost-gateway should do a pass-through request, where the backend gets exactly the same request for a single block (application/vnd.ipld.raw):
/ipfs/cid?format=raw → /ipfs/cid?format=raw
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(iiuc) an incoming request for
/ipfs/cid/subpath/file?format=raw
is translated to backend request for/ipfs/cid/subpath/file?format=car&dag-scope=block
and the returned CAR includes blocks for traversing/cid
→/subpath
and then the root block of/file
.When a block for CID is requested directly (no subpath) we are wasting resources on CAR wrapping.
Proposed improvement
If requested format is a single block (
application/vnd.ipld.raw
), and there is no subpath (only direct CID/ipfs/cid
), bifrost-gateway should do a pass-through request, where the backend gets exactly the same request for a single block (application/vnd.ipld.raw
):/ipfs/cid?format=raw
→/ipfs/cid?format=raw
The text was updated successfully, but these errors were encountered: