如何清理 Outlook 加载项的缓存? [英] How to clean the cache of Outlook add-ins?

查看:161
本文介绍了如何清理 Outlook 加载项的缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Outlook for Windows 版本 16.0.12228.20100 32 位上测试 JavaScript 加载项.

2) 在 Outlook 中打开您的加载项

3) Edge Dev Tools 应该在 Debug Targets 下显示您的加载项.您可能需要刷新 Edge Dev Tools.

4) 附加到加载项后,调试器将在网络"选项卡下有一个清除缓存按钮.

5) 如果这不起作用,您也可以尝试单击始终从服务器刷新",然后将焦点放在加载项中并按 ctrl-F5 刷新窗格并从服务器而不是缓存加载.

6) 您还可以向 HTML 页面添加no-cache"标头,但出于性能原因,不建议随附这些标签.

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?

解决方案

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.

这篇关于如何清理 Outlook 加载项的缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆