Kevin Powell - CommunityKP-C
Kevin Powell - Community3y ago
44 replies
MD

Prevent spamming of api calls when Refresh is pressed or back + forward continuously

What I need to do is store the user's results of the first call and then either cache or localstorage / sessionstorage so when the user presses the buttons mentioned above, the page will load that data instead of doing multiple calls. I also need a timer to do another call after an hour to update for any weather changes. Any ideas on this?
Was this page helpful?