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

Cache issue, browser caching data #17

Open
fawazahmed0 opened this issue Nov 22, 2020 · 2 comments
Open

Cache issue, browser caching data #17

fawazahmed0 opened this issue Nov 22, 2020 · 2 comments

Comments

@fawazahmed0
Copy link
Owner

fawazahmed0 commented Nov 22, 2020

Add get param to the url, to get new uncached data, adding a UTC date in param is best thing to do, as rates are updated at UTC 00:00 daily, this will make sure you get the fresh daily updated currencies

https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies.json?d=2024-03-06

programatically done:

const UTCDateStr = new Date().toISOString().substring(0,10)
const avoidCache = '?d='+UTCDateStr
@issue-label-bot issue-label-bot bot added the bug Something isn't working label Nov 22, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.61. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@fawazahmed0 fawazahmed0 changed the title Cache issue Cache issue, browser caching data Nov 22, 2020
@fawazahmed0 fawazahmed0 removed the bug Something isn't working label Dec 2, 2020
@fawazahmed0
Copy link
Owner Author

@fawazahmed0 fawazahmed0 transferred this issue from another repository Feb 29, 2024
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

1 participant