web3-dev-team icon indicating copy to clipboard operation
web3-dev-team copied to clipboard

ipfs:// everywhere

Open Gozala opened this issue 4 years ago • 1 comments

Gozala avatar Mar 29 '21 22:03 Gozala

I am ok with adding support for https://${gateway}/ipfs://${CIDv1} notation on gateways as a cheap way of improving UX, but it should be a convenience redirect to a URL following an existing path or subdomain convention:

https://${gateway}/ipfs://${CIDv1}
  → https://${gateway}/ipfs/${CIDv1}
    → https://${CIDv1}.ipfs.${gateway}

We can't make it a canonical notation because its not compatible with subdomain root requirement (details below)

What I was suggesting here it should do following instead:

https://${gateway}/ipfs://${CIDv1}
 → https://${CIDv1}.ipfs.${gateway}/ipfs://${CIDv1}

The whole point here is that domain stuff, is for programs like browsers to do a the right thing and should be meaningless for humans. As for humans they can ignore that stuff in domain and always see ipfs://${CIDv1} making the whole pattern recognition work.

Gozala avatar Mar 30 '21 22:03 Gozala