4

In Outlook for Mac, an office.js Outlook add-in runs in a task pane that I assume is a Safari web control. I have not been able to determine how you clear the cached files from an add-in running in the task pane.

Does anyone know how to manually clear the task pane's browser cache? I cannot find an official answer, just guesses.

Thanks.

Carbo
  • 319
  • 3
  • 13
  • It is an embedded WebKit instance. That said, what is the issue that you are running into? – Marc LaFleur Feb 07 '18 at 18:49
  • During testing we sometimes need to ensure that the new code is being loaded, but are getting the older cached files. – Carbo Feb 07 '18 at 19:09

3 Answers3

4

Outlook has changed cache path, the new one is ~/Library/Containers/com.microsoft.Outlook/Data/Library/Caches

  • 1
    In addition to this, cookies can be cleared by deleting `~/Library/Containers/com.microsoft.Outlook/Data/Library/Cookies/Cookies.binarycookies` Here's a command: ```rm -rf ~/Library/Containers/com.microsoft.Outlook/Data/Library/Cookies/Cookies.binarycookies ~/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/com.microsoft.Outlook``` – markdon Apr 29 '21 at 00:22
3

Seems like the documentation contains the information you're looking for: Clear the Office cache

For Mac:

Delete the contents of the folder:

~/Library/Containers/com.Microsoft.OsfWebHost/Data/
JayRizzo
  • 3,234
  • 3
  • 33
  • 49
Kim Brandl
  • 13,125
  • 2
  • 16
  • 21
  • The first time I clear this directory, it worked. However, the second time I wanted to clear cache, this directory is empty...So how can I clear cache? – Kreja Dec 19 '18 at 13:51
  • 1
    That folder (com.Microsoft.OsfWebHost) doesn’t exist on my computer. There is a com.microsoft.Outlook, hmm don’t feel great deleting the Data folder there, but I guess I’ll try moving it. – Jinyoung Kim Mar 07 '19 at 13:14
3

I had a similar issue when building a custom function. My js was being cached and was not reloaded when pushed updated code to my webserver.

To remove the cache on my mac I deleted the contents of the following directory:

~/Library/Containers/com.microsoft.Excel/Data/Library/Caches/
JayRizzo
  • 3,234
  • 3
  • 33
  • 49