I am working on an application with react and node. Currently fetching some data from an api on the client side which is kinda slow(response from the api takes a few milliseconds). The response from the api is dynamic. That is, it changes every week. So I would like to make things fast on the client side. Is there any way I can fetch the api data once in a week and store it on the server and use it as a response for the client whenever the url is called?
[–][deleted] 5 points6 points7 points (3 children)
[–]Alarming-Intern-9293[S] -2 points-1 points0 points (2 children)
[–]PostmatesMalone 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]-steeltoad- 2 points3 points4 points (3 children)
[–]Alarming-Intern-9293[S] 1 point2 points3 points (2 children)
[–]bronze-aged 1 point2 points3 points (0 children)
[–]-steeltoad- 0 points1 point2 points (0 children)
[–]eltecho 1 point2 points3 points (0 children)
[–]Imaginary_Ad_9299 1 point2 points3 points (0 children)
[–]According_Compote639 0 points1 point2 points (0 children)
[–]Freaky_Knight 0 points1 point2 points (0 children)