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

Reduce Network Bandwidth #297

Merged

Conversation

AzureAaron
Copy link
Collaborator

Reduces network bandwidth generated from the mod loading data from various apis

  • When requesting data from semi static endpoints, the mod first sends a HEAD request and combines the string hashcodes of the Last-Modified and ETag header to determine if the content has changed or not.
  • Now uses Java's HTTP Client Api
  • Requests (and gets) gzip compression from all apis
  • Requests are now made over HTTP/2
  • The mod now has a user agent
    • It follows this format Skyblocker/MOD_VERION (MC_VERSION) ex: Skyblocker/1.13.0 (1.20.1)

Copy link
Collaborator

@kevinthegreat1 kevinthegreat1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code lgtm.

@kevinthegreat1 kevinthegreat1 merged commit 331caf4 into SkyblockerMod:master Sep 13, 2023
1 check passed
@AzureAaron AzureAaron deleted the reduce-network-bandwidth branch September 13, 2023 01:52
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