Alt-Svc is an Internet Standard (RFC7838) which allow an origin's resources to be authoritatively available at a separate network location, possibly accessed with a different protocol configuration.
TL;DR
The idea of Alt-Svc is for a website to be able to tell a client "For technical reasons you don't need to care about, please talk to me using [this other web address]."
The client optionally does so. (They don't have to.) If they do so, they do not change the address bar or give any sort of visual indication to the user.
– src
Potential IPFS Use
Websites could announce they are available over IPFS in a way that does not require additional DNS lookups.
/ipfs/
$ curl -s -I -X GET https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dweb.link/ | grep -i Alt-Svc
Alt-Svc: ipfs="bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq"; ma=315360000; persist=1
/ipns/
$ curl -s -I -X GET https://wikipedia.org/ | grep -i Alt-Sv
Alt-Svc: ipns="wikipedia.org"; ma=3600; persist=1
Pros:
- Location bar kept intact (same Origin!)
- Following existing standard
- Prior Art exists, Tor Browser will use .onion address if announced by a website
- Enables smooth upgrade from HTTP to IPFS transport
- Can be cached HSTS-style
- No DNS TXT lookups
Cons:
- Location bar kept intact (needs additional indicator that IPFS was used)
- Requires initial hit to HTTP server
- Relies on native support in browser itself
- There is no API for WebExtension to register itself as a handler
References
Alt-Svcis an Internet Standard (RFC7838) which allow an origin's resources to be authoritatively available at a separate network location, possibly accessed with a different protocol configuration.TL;DR
Potential IPFS Use
Websites could announce they are available over IPFS in a way that does not require additional DNS lookups.
/ipfs/
/ipns/
Pros:
Cons:
References
Alt-Svc