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

Hypixel Api Proxy + Profile Id Caching #386

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

AzureAaron
Copy link
Collaborator

What we've all been waiting for.

Currently the proxy is hosted on my worker due to LIAP being busy and creating a custom cache involves lots of work and considerations. If the UA contains Skyblocker then it uses the mods key, all api responses from the mod are cached for 5 minutes on CF's network.

There's support internally for detecting whether a response was served from the cache or not, it can be used to display warnings about cached/old data; CF also supplies the Age header indicating the cached response's age so I can add that if there is interest.

Profile id caching is also implemented because the museum endpoint only takes a profile id and sending an api request just to find a profile id is extremely wasteful.

@AzureAaron AzureAaron added the reviews needed This PR needs reviews label Oct 25, 2023
kevinthegreat1
kevinthegreat1 previously approved these changes Oct 26, 2023
@AzureAaron AzureAaron added merge me please Pull requests that are ready to merge and removed reviews needed This PR needs reviews labels Oct 26, 2023
@AzureAaron AzureAaron merged commit 31cfd39 into SkyblockerMod:master Oct 26, 2023
1 check passed
@AzureAaron AzureAaron deleted the hypixel-api branch October 26, 2023 04:41
@AzureAaron AzureAaron removed the merge me please Pull requests that are ready to merge label Oct 26, 2023
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

Successfully merging this pull request may close these issues.

2 participants