M Haynes
M Haynes

Reputation: 19

how do you clear the outlook addon | add ins cache via browser?

I am developing an outlook officejs add on. When we remove and re-add the add on, it often caches the old files and doesnt over write even though the manifest has an incriminating ver number or/and the GUID is changed.

I found this link to remove the cache on the local box if using the client, but what if you're using the browser? This doesnt seem to work.

https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache

The same question was asked in 2020 with no solution (I have tested all these steps) How to clean the cache of Outlook add-ins?

Upvotes: 1

Views: 1231

Answers (3)

Conway Magee
Conway Magee

Reputation: 1

I find that ctrl- F5 does not always respond. Often if I insist by tapping the ctrl- F5 a number of times it works. The first indication that it is working is the taskpane goes blank and then is rewritten. The obvious check is to verify the running program reflects the change(s).

I believe that there is room improve the response of ctrl-F5. Perhaps it could be included in the Personality Menu of the taskpane such as the Reload. There again I would have thought that the reload would do a complete fresh reload of the Office Add-in including html, css, js, etc.

Upvotes: 0

M Haynes
M Haynes

Reputation: 19

MS confirmed CTRL+F5 refreshed the pane. We were also able to disable caching from developer. Reason for our issue was due to pulling the wrong repo and hence changes were not taking effect. Skool boy error.

Upvotes: 1

Eugene Astafiev
Eugene Astafiev

Reputation: 49397

There is no way to clear the cache from the web add-in. Instead, you may consider using mime headers for caching control of your files by the browser on the end user machines. Read more about that in the HTTP caching and Cache-Control pages on MDN.

Upvotes: 0

Related Questions