-
Notifications
You must be signed in to change notification settings - Fork 4
Description
The Trustless Gateway Spec requires supporting HEAD requests.
I have observed providers with HTTP-endpoint that return 500 on HEAD requests, while returning content with GET requests for the same URL.
It is important that HEAD requests are supported as it allows opportunistic content discovery without causing unnecessary load on the providers.
For example, in general we can use HEAD to test if multiple providers have the content they are announcing. We can then use GET to fetch according to latency measurements, or any scoring mechanism.
In the context of Spark, we can expand tests by checking the presence of many more CIDs and randomly picking which ones to fully retrieve.
juliangruber
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ done