I am working on an Outlook Taskpane add-in. In the Taskpane we are fetching data from an API and showing the result in the taskpnae.
However the data is getting cached at the Outlook Client and at times, the taskpane still shows older data.Is there any way we can force the taskpane to always load the data from the Server rather than Outlook cache.
I have tried to modify the IE Settings, but that doesn't seem to work.
The issue was with axios and IE 11. Apparently IE caches the API response and even though the request was hitting the server everytime the response was being fetched from cache. Adding the Pragma header like below to the axios request solved the issue.
headers: {'Pragma': 'no-cache'}