{"id":8801,"date":"2019-12-12T21:54:13","date_gmt":"2019-12-13T01:54:13","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=8801"},"modified":"2020-01-24T16:36:31","modified_gmt":"2020-01-24T20:36:31","slug":"office-add-ins-office-js-cache-location","status":"publish","type":"post","link":"http:\/\/nycphantom.com\/journal\/?p=8801","title":{"rendered":"Office Add-ins Office-js Cache location"},"content":{"rendered":"\n<p>Finally found this. I couldn't clear the cache of headers and footers applied. Therefore, all the revised template uploads weren't reflecting any changes. But delete all files\/folders in: %LOCALAPPDATA%\\Packages\\Microsoft.Win32WebViewHost_cw5n1h2txyewy\\AC\\#!123\\INetCache\\<br>does the trick! I wonder if I could use this on Al's Ribbon logo, which is still showing the old logo. After all, how many more locations would Office-JS wants to cache this?<\/p>\n\n\n\n<p>Source:  <a href=\"https:\/\/stackoverflow.com\/questions\/34168603\/office-add-ins-caching-my-html-file\">https:\/\/stackoverflow.com\/questions\/34168603\/office-add-ins-caching-my-html-file<\/a> <\/p>\n\n\n\n<p>Today (Win 10 1903 and newest Office 2016) Office AddIns are using&nbsp;<strong>Edge<\/strong>&nbsp;as&nbsp;<strong>WebViewHost<\/strong>. The WebViewHost seems to store the cached files here:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dir \/s %LOCALAPPDATA%\\Packages\\Microsoft.Win32WebViewHost_cw5n1h2txyewy\\AC\\#!123\\INetCache\\<\/code><\/pre>\n\n\n\n<p>In our case we are using&nbsp;<strong>Azure App Service (IIS)<\/strong>&nbsp;as backend for our Office AddIn. And we added the following web.config setting to let the client re-validate all cached files on each access:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>...\n  &lt;system.webServer>\n    &lt;staticContent>\n      &lt;clientCache cacheControlMode=\"UseMaxAge\" cacheControlMaxAge=\"0.00:00:00\" cacheControlCustom=\"must-revalidate\" \/>\n    &lt;\/staticContent>\n...<\/code><\/pre>\n\n\n\n<p>As with MAC, I don't know if this will be an issue, but if so, one place this cache may be stored is <a rel=\"noreferrer noopener\" aria-label=\"here (opens in a new tab)\" href=\"https:\/\/support.collabspot.com\/support\/solutions\/articles\/9000157971-clearing-the-office-application-s-cache-on-a-mac\" target=\"_blank\">here<\/a>, delete everything in:<\/p>\n\n\n\n<p> <code>\/Users\/{your_name_on_the_device}\/Library\/Containers\/com.Microsoft.OsfWebHost\/Data\/<\/code>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally found this. I couldn't clear the cache of headers and footers applied. Therefore, all the revised template uploads weren't reflecting any changes. But delete all files\/folders in: %LOCALAPPDATA%\\Packages\\Microsoft.Win32WebViewHost_cw5n1h2txyewy\\AC\\#!123\\INetCache\\does the trick! I wonder if I could use this on Al's &hellip; <a href=\"http:\/\/nycphantom.com\/journal\/?p=8801\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3],"tags":[],"class_list":["post-8801","post","type-post","status-publish","format-standard","hentry","category-questions","category-technical"],"_links":{"self":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/8801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8801"}],"version-history":[{"count":2,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/8801\/revisions"}],"predecessor-version":[{"id":8867,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/8801\/revisions\/8867"}],"wp:attachment":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8801"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}