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

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

Open
@lidel

Description

@lidel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)status/readyReady to be worked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions