Skip to content

Test HEAD requests before GET #104

@hsanjuan

Description

@hsanjuan

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

✅ done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions