I was calling API with interval of 3 sec and API response which is too large, so I need to overcome the storage usage while API call. Can any one suggestion me what can I do? I tried it with adding cache headers but this is not working.
setInterval(async() => {
let response = await fetch(API_ENDPOINT, {'cache':'no-store'});
let result = await response.json();
console.log(result);
}, 3000);