ipfs / specs

Technical specifications for the IPFS protocol stack
https://specs.ipfs.tech
1.15k stars 232 forks source link

gateway: CDN-Loop #426

Open lidel opened 11 months ago

lidel commented 11 months ago

Problem

Solution

Find and document a way for gateway operators and CDNs to avoid loops.

Prior Art

CDN-Loop seems to be the best candidate?

Ref.

Example

Request that was sent to ipfs.io, then hit saturn backend, and then hit one of Saturn L1s would have:

CDN-Loop: saturn-l1-id, saturn.tech; ipfs.io;  

This allows:

  1. ipfs.io to detect and drop requests that loop to itself
  2. saturn to either detect drop requests that loop to itself or route request to a DIFFERENT L1