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

feat(locale): introducing cache busting logic #4325

Merged

Conversation

IgnacioBecerra
Copy link
Contributor

Related Ticket(s)

#3959

Description

As done in TranslationAPI, this PR adds a new timestamp property within the response json to compare with the current time. If the timestamp is older than two hours, a new response will be fetched with a new, current timestamp.

Also implemented tests for the new methods.

Changelog

New

  • timestamp property added to the response json for cache busting purposes

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 28, 2020

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 28, 2020

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @IgnacioBecerra!

@jeffchew jeffchew added the Ready to merge Label for the pull requests that are ready to merge label Oct 28, 2020
@kodiakhq kodiakhq bot merged commit 6275e40 into carbon-design-system:master Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants