清洁办公室加载项缓存 [英] Cleaning office add-in cache

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

问题描述

我已经用yeoman接管了以前写的Office插件.我一直在更改设置,但是在进行初始安装后,我想更改了多远,所以我相信我的Outlook客户端已经存储了某种缓存.当我尝试安装更新的版本时,它仍然保留先前版本的徽标和设置,但是当将其安装在没有先前版本的系统上时,一切都很好.

任何建议都会有所帮助.我尝试删除我的本地配置文件并通过重新启动Outlook重新创建它,但这似乎对整个过程没有影响.

谢谢

我正在谈论Outlook独立客户端.

解决方案

用于Windows的Outlook Desktop 加载项在IE Web浏览器控件的iFrame中运行.要清理外接程序打开的IE浏览器的缓存,请转至设置并删除缓存.重新启动您的加载项,它应该和新的一样好.

网络版Outlook 用户可能在受支持的浏览器上运行.在这种情况下,请转到所用网络浏览器的设置,然后删除该浏览器的缓存.

适用于Mac的Outlook Desktop 加载项在某种形式的Web浏览器控件(与Office 2016 for Mac一起内置)下运行,如何删除此处的缓存仍然是我的难题. /p>

如果您的应用程序使用 RoamingSettings 对象,请查看saveAsync任何自定义属性,并通过以下saveAsync根据需要删除它们.

当然,上述方法仅用于您/QA/dev.对于您的客户,作为开发人员,在发布新版本时,必须照顾已更改文件的缓存.由于您的加载项就像网站一样,因此请使用网络技术来刷新浏览器的缓存.有很多方法可以实现这一目标.例如,您可以更改新版本文件的位置...

<script src="/v1.0/Commands.js" type="text/javascript"></script>
<script src="/v1.1/Commands.js" type="text/javascript"></script>

或在源文件中添加一些随机参数...

<script src="Commands.js?version=a56b34a87" type="text/javascript"></script>

,依此类推.这些简单的方法将迫使浏览器重新加载文件内容.

I have taken over a previously written office add-in with yeoman. I have been changing settings and else but after the initial install to see how far it has gone I believe my outlook client has stored some kind of cache. When I try to install the updated version it still holds the logos and settings for the previous version but when install it on a system which did not have a previous version of it its all good.

Any suggestions help. I have tried deleting my local profile file and recreate it by relaunching outlook but that does not seem to have effect on the whole process.

Thanks

EDIT:

I am talking about the Outlook standalone client.

解决方案

Outlook Desktop for Windows add-in runs in iFrame of IE Web browser control. To clean up the cache of the add-in open IE browser, go to settings and remove cache. Re-launch your add-in and it should be as good as new.

Outlook for web user may run under supported browsers. In this case go to settings of the web browser used and remove the cache of this browser.

Outlook Desktop for Mac add-in runs under some kind of variation of web browser control (built in with Office 2016 for Mac) and how to remove cache over here is still puzzle for me.

If your application uses RoamingSettings object, take a look if you saveAsync any custom properties and remove them as you need with following saveAsync.

EDIT:

Of cause the described methods above are for your/QA/dev use only. For your customers you, as developer, has to take care of the cache for the files you have changed, when posting new release. As your add-in is nothing else as website, use web technology to re-fresh cache of the browser. There are many ways to achieve that. For example you may change location of the files for new release ...

<script src="/v1.0/Commands.js" type="text/javascript"></script>
<script src="/v1.1/Commands.js" type="text/javascript"></script>

or add some random parameter to the sources file ...

<script src="Commands.js?version=a56b34a87" type="text/javascript"></script>

and so on. Those simple methods will force browser to reload the file content.

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

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