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

Stats frontend: better caching #82

Open
rossjrw opened this issue Sep 19, 2023 · 0 comments
Open

Stats frontend: better caching #82

rossjrw opened this issue Sep 19, 2023 · 0 comments
Labels
optimisation Make an existing feature faster or smaller

Comments

@rossjrw
Copy link
Member

rossjrw commented Sep 19, 2023

After #81, the stats frontend now uses a lot of data while checking for new updates - if the stats are about 500 kB, then it can use up to 7.5 MB as it redownloads the file each minute.

Instead, better caching should be leveraged.

There must be some sort of way to get fetch() and CloudFront to play nicely with each other, letting the browser know whether the content has actually changed so that only a minimal request needs to be made.

@rossjrw rossjrw added the optimisation Make an existing feature faster or smaller label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimisation Make an existing feature faster or smaller
Projects
None yet
Development

No branches or pull requests

1 participant