How to clean the cache of Outlook add-ins?

佐手、 提交于 2021-02-08 06:11:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!