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

Use proper api endpoints #60

Open
cpacia opened this issue Jul 24, 2018 · 0 comments
Open

Use proper api endpoints #60

cpacia opened this issue Jul 24, 2018 · 0 comments

Comments

@cpacia
Copy link
Member

cpacia commented Jul 24, 2018

The site should avoid making /ipns/ calls to the server. The return of these calls is not sanitized and just returns raw data.

For example profiles can be fetched by /ob/profile or images as /ob/avatar or /ob/header

Also, to make sure the web is as fast as possible you should use the usecache flag on all calls. The return is very unlikely to not be up to date and it will return faster. /ipns/ calls only cache for one minute and then make another DHT query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant