This repository was archived by the owner on Feb 8, 2023. It is now read-only.
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
Advertise that content-served is IPLD/IPFS on gateway via HTTP #184
Open
Description
- When I do a HTTP request, there is no way for me to understand whether the data has been served is an IPFS/IPLD object.
- Currently, there is no way for a client to check that the content served is actually the correct one.
I do see the case for people to make light clients for the browser that only get data through a gateway, but still want to be able to check whether the data served match the hash (or the merkle proof path is valid). These clients however, should only do this check when they know that the content served is an IPLD/IPFS content.
How can we do this?
- HTTP gateway uses the Link header to specify that it is an IPLD object? (I see only the HTTP header as the right place for this)
- When the client (like a browser plugin) receives the content, then check that the page is an IPLD/IPFS object and finally does the check
cc @lgierth maybe?