Skip to content

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
@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