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

Caching in fallback link #110

Closed
Advaith3600 opened this issue Dec 12, 2024 · 3 comments
Closed

Caching in fallback link #110

Advaith3600 opened this issue Dec 12, 2024 · 3 comments

Comments

@Advaith3600
Copy link

Hi, thank you for this amazing API, I am using this for a currency converter plugin for PowerToys Run.

I would like to know if the fallback link is cached and how frequently it is updated. If it is not cached, what is the maximum server load it can handle? I am planning to implement multiple APIs as options so that users can choose between a cached, reliable one and a more up-to-date version. Can the fallback be used for this purpose?

@fawazahmed0
Copy link
Owner

fawazahmed0 commented Dec 12, 2024

use cloudflare fallback if you would like to get more up-to-date data. there are no rate limits with cloudflare.

Also make sure to include Fallback mechanism in your code, for example if currency-api.pages.dev link fails, fetch from cdn.jsdelivr.net

@Advaith3600
Copy link
Author

Are you saying that currency-api.pages.dev is updated daily without caching, and that the only difference between the two endpoints is related to caching?

@fawazahmed0
Copy link
Owner

yes

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

No branches or pull requests

2 participants