Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Add Suborigin, Etag and X-Ipfs-Path headers #10

Open
lidel opened this issue Aug 22, 2018 · 0 comments
Open

Add Suborigin, Etag and X-Ipfs-Path headers #10

lidel opened this issue Aug 22, 2018 · 0 comments
Labels
kind/bug A bug in existing code (including security flaws) status/ready Ready to be worked

Comments

@lidel
Copy link
Member

lidel commented Aug 22, 2018

I feel we should aim at header-parity with go-ipfs.

To future-proof it, it should be CIDv1 in Base32 everywhere:

$ curl -I https://ipfs.io/ipfs/bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy
...
Etag: "bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy"
X-Ipfs-Path: /ipfs/bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy
Suborigin: ipfs000bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy

Notes regarding Suborigin:

Additionally, resources from /ipfs/ namespace should be returned with immutable flag:

  • Cache-Control: public, max-age=29030400, immutable
@daviddias daviddias added kind/bug A bug in existing code (including security flaws) status/ready Ready to be worked labels Aug 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug A bug in existing code (including security flaws) status/ready Ready to be worked
Projects
None yet
Development

No branches or pull requests

2 participants