OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
658 stars 94 forks source link

Office Outlook Network Cache #3690

Open jonshuang opened 10 months ago

jonshuang commented 10 months ago

Hi, we have developed an Outlook web add-in. It seems to be permanently adding to and caching the network requests files in the /Users/*user*/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/WebKit/NetworkCache/Version 16/Records/**/Resource folder.

Some users have over 3 GB in that folder. Is there a way we can clear this programmatically or without manually going to the folder and deleting it? I've looked in Outlook settings and could not find a way to clear this in the app.

Your Environment

Expected behavior

We've looked at the article: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache#clear-the-office-cache-on-mac and it says the cache should be cleared by reloading the add-in but that does not seem to be the case.

Current behavior

On each load, it adds new files and about 22mb to the folder without deleting anything. I have files very old in this folder (dating from since i've installed the add-in).

Steps to reproduce

  1. Load an add-in
  2. See that there's files added to the /Users/*user*/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/WebKit/NetworkCache/Version 16/Records/**/Resource folder (network files)
  3. Verify that re-loading the addon does not delete anything, but adds to it
besiler commented 5 months ago

Hi @jonshuang , I'm from the Outlook add-ins team and wanted to follow up on this issue. Are you still experiencing the issue or did you find a solution?

microsoft-github-policy-service[bot] commented 1 hour ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!