Advice Generator App using API | Fetch API | Less | Promises
Design comparison
Solution retrospective
how you import local json file ? Feedbacks Appriciated !
Community feedback
- @StormKing969Posted over 2 years ago
Hi Anurag, I took some time to look at your solution and you did a great job!
However, I'm not sure if you noticed but your button doesn't seem to work as intended. And the reason for it is that after your first fetch, the info you get from the API gets cached. The way I fixed that issue in my solution was by disabling the cache.
Overall you did well :)
Hope this help and happy coding!
0@StormKing969Posted over 2 years ago@exist08 I disabled mine by using the following:
$.ajaxSetup({ cache: false });
There are some other ways to disable caches mentioned in the link below.
LINK: https://cristian.sulea.net/blog/disable-browser-caching-with-meta-html-tags/
Hope that helps
0
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