Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use path gateway in default gateways #374

Merged
merged 3 commits into from
Jan 30, 2024
Merged

Conversation

2color
Copy link
Member

@2color 2color commented Jan 10, 2024

Fetching from subdomain gateways like cf-ipfs.com using path resolution returns a redirection (same thing with dweb.link) for every CID. This means an additional round trip for every CID requested.

This PR changes the default gateways to their path equivalent to avoid the additional round trip.
fixes #347

@2color 2color requested a review from a team as a code owner January 10, 2024 12:20
@2color 2color changed the title Use path gateway in default gateways fix: use path gateway in default gateways Jan 10, 2024
SgtPooki and others added 2 commits January 16, 2024 08:26
Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
@2color 2color requested a review from SgtPooki January 16, 2024 16:44
@2color
Copy link
Member Author

2color commented Jan 16, 2024

Blocked until ipshipyard/waterworks-community#4 is resolved.

@2color 2color added the status/blocked Unable to be worked further until needs are met label Jan 16, 2024
@SgtPooki SgtPooki added status/ready Ready to be worked and removed status/blocked Unable to be worked further until needs are met labels Jan 30, 2024
@SgtPooki
Copy link
Member

this should be ready to be merged now

@SgtPooki SgtPooki merged commit 94b0cd1 into main Jan 30, 2024
16 checks passed
@SgtPooki SgtPooki deleted the fix-default-gateways branch January 30, 2024 23:56
@achingbrain achingbrain mentioned this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/ready Ready to be worked
Projects
No open projects
Status: 🔎 In Review
Archived in project
Development

Successfully merging this pull request may close these issues.

Trustless gateway broker should use subdomain gateway to prevent 301 roundtrips
3 participants