Open sunnydl opened 3 years ago
This is to reduce api calls to RIOT due to rate limiting https://developer.riotgames.com/docs/portal#:~:text=The%20rate%20limit,every%202%20minutes. So if the frontend user "accidentally" refreshes the page within 2 mins it will get back the same content from the backend endpoint without consulting the RIOT api.
Good resource for setting up is: https://www.npmjs.com/package/apicache
This is to reduce api calls to RIOT due to rate limiting https://developer.riotgames.com/docs/portal#:~:text=The%20rate%20limit,every%202%20minutes. So if the frontend user "accidentally" refreshes the page within 2 mins it will get back the same content from the backend endpoint without consulting the RIOT api.
Good resource for setting up is: https://www.npmjs.com/package/apicache