问题
I'm testing a JavaScript add-in on Outlook for Windows version 16.0.12228.20100 32-bit. These recommendations do not work. Is there any reliable way of cleaning add-in cache to test immediately after editing the JavaScript source code?
Update: Thanks for answer but clearing the cache of web browser does not clear the cache of Outlook. Do you know any undocumented way to reload the add-in in Outlook?
回答1:
If you just want to update the HTML/JS you should be able to put focus into the Add-in, then hit "Ctrl-F5"
If this doesn't work you can follow instructions below for more detailed instructions on how to clear other parts of the cache.
You first need to install Edge DevTools and attach a debugger to your add-in.
1) launch Edge Dev Tools. (not F12 Chooser)
2) Open your Add-in in Outlook
3) Edge Dev Tools should show your add-in under Debug Targets. You may need to refresh Edge Dev Tools.
4) Once attached to your add-in, the debugger will have a clear cache button under the Network tab.
5) If this does not work, you can also try clicking on the "Always Refresh From Server" Then putting focus in the add-in and hitting ctrl-F5 to refresh the pane and load from server instead of cache.
6) You can also add "no-cache" headers to your HTML page, though it is not recommended to ship with those tags for performance reasons.
来源:https://stackoverflow.com/questions/59031399/how-to-clean-the-cache-of-outlook-add-ins