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

add cache headers to the network stats response so theyre cached by browsers briefly #187

Open
gruns opened this issue Jun 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request Low Priority

Comments

@gruns
Copy link
Contributor

gruns commented Jun 15, 2023

add a short cache ttl, my gut says around 10s to 30s, to the network stats response (the response from https://uc2x7t32m6qmbscsljxoauwoae0yeipw.lambda-url.us-west-2.on.aws/?...)

this

  1. lets this response be cached by a CDN to protect the db behind the response
  2. loads the stats instantly (and prevents an extra, unnecessary network requests from being made) on a quick tab refresh after initial page load

this isnt much work but is low priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low Priority
Projects
None yet
Development

No branches or pull requests

2 participants