Design comparison
SolutionDesign
Solution retrospective
Can anyone tell me how I can make it so that the api doesn't require 2 seconds before a refresh? The api endpoint says that it needs 2 seconds or it will not run but I've seen a solution where they got it to update rapidly.
Community feedback
- @StormKing969Posted over 2 years ago
The reason why you need to wait 2 seconds is because the response gets cached and if you make a call faster than that, then you end up with the same response as before. So if you disable your cache, you should be able to rapidly update your quotes.
Hope that helps :)
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord