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

API: url param to only fetch named endpoint #104

Open
bnjmnrsh opened this issue Sep 1, 2021 · 0 comments
Open

API: url param to only fetch named endpoint #104

bnjmnrsh opened this issue Sep 1, 2021 · 0 comments
Labels
API enhancement New feature or request js relating to js

Comments

@bnjmnrsh
Copy link
Member

bnjmnrsh commented Sep 1, 2021

If one endpoint fails, it would be good if there is any scale involved, if all endpoints didn't have to be re-queried to get the missing data. If an endpoint fails, then the app can try to reload just that one endpoint.

  • Check for URL params that match any of the named endpoints in our array, and just return this.

    • invalidate cache for that lat/lon query
  • If one endpoint fails, we should immediately invalidate Cloudflare caching of that lat/lon query.

@bnjmnrsh bnjmnrsh added enhancement New feature or request js relating to js API labels Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request js relating to js
Projects
None yet
Development

No branches or pull requests

1 participant