Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you provide me with more information on how to clear the cache for Office "new Outlook"? #4513

Open
t-ariyoshi30907 opened this issue May 16, 2024 · 7 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)

Comments

@t-ariyoshi30907
Copy link

t-ariyoshi30907 commented May 16, 2024

Hello,

I am creating and selling an Outlook JavaScript add-in. I have a question about the method for clearing the cache that is published on the following page:

After deploying a new program for the Office add-in to Azure Cloud Blob Storage, some HTML files did not update, causing malfunctions. As a result, we're looking for a way to clear the Office add-in cache.

On the following page, it's written that to manually clear the cache, you need to delete the following folder:

office-js-docs-pr/clear-cache.md at main · OfficeDev/office-js-docs-pr](https://github.com/OfficeDev/office-js-docs-pr/blob/main/docs/testing/clear-cache.md)

Deleting this folder ensured that the latest program was loaded in the traditional Outlook, resolving the issue. However, when testing it in the "new Outlook," the issue was not resolved.

Since no data is being added to the wef folder when running the add-in in the "new Outlook," we suspect that there might be other folders retaining the cache.

Could you please provide instructions on how to clear the Office add-in cache in the "new Outlook"?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label May 16, 2024
@t-ariyoshi30907 t-ariyoshi30907 changed the title Could you provide me with more information on how to clear the cache for Office(new Outlook)? Could you provide me with more information on how to clear the cache for Office "new Outlook"? May 16, 2024
@AlexJerabek
Copy link
Collaborator

Thanks for raising this issue @t-ariyoshi30907. You can manually remove Outlook add-ins by following these steps: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache#manually-clear-the-cache-in-outlook. Removing the add-in then re-sideloading it should refresh all the files your add-in uses.

Please let me know if that fixes your issue.

@AlexJerabek AlexJerabek self-assigned this May 16, 2024
@AlexJerabek AlexJerabek added Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Type: product question Question about the Office Add-ins platform or Office JavaScript APIs and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels May 16, 2024
@t-ariyoshi30907
Copy link
Author

t-ariyoshi30907 commented May 17, 2024

@AlexJerabek
Thank you for your response.

However, there is an issue with the cache clearance method you provided. The add-in developed by our company is installed and used in customers' tenants through the Microsoft 365 admin center.

According to your suggested procedure, we would have to repeatedly remove and redeploy the add-in in the customer's environment with each deployment, which would negatively impact the customer.

Our goal is to find a recovery method that ensures the latest index.html is loaded.
Is there a way to clear the old cache data without removing and redeploying the add-in?

Additionally, I have another question. My add-in temporarily stores product policy information in local storage,
which is reused during various operations. for example) localStorage.setItem(); localStorage.getItem();
Since this local storage data might be related to the issues we're encountering, we would like to clear it.

In the case of Outlook for Windows, where is the local storage data saved within the Windows OS?

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels May 17, 2024
@AlexJerabek
Copy link
Collaborator

Ah, I didn't realize your add-in was deployed to customers. Let me tag @exextoc to investigate this issue from the product side.

@AlexJerabek AlexJerabek assigned exextoc and unassigned AlexJerabek May 17, 2024
@t-ariyoshi30907
Copy link
Author

@AlexJerabek
Thank you for your reply. I understand.

@exextoc
In order to use the Office add-in with the new Outlook, this issue needs to be resolved.
I apologize for the inconvenience, but could you please look into it?

@samantharamon samantharamon transferred this issue from OfficeDev/office-js-docs-pr May 28, 2024
@exextoc exextoc removed the Type: product question Question about the Office Add-ins platform or Office JavaScript APIs label May 28, 2024
@t-ariyoshi30907
Copy link
Author

@exextoc
It's been a while since my last post.
Could you please update me on the status of this ticket?
As this issue is affecting my client, I would appreciate your cooperation in resolving it.

@akagarwa-msft
Copy link

Cache in New Outlook can be cleared by:

  1. Close New Outlook and run the following command in terminal: olk.exe -devtools . This will open DevTools along with the Outlook App.
  2. Manually clear the cache as mentioned here https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/network/reference#manually-clear-the-browser-cache

@akagarwa-msft akagarwa-msft added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Jun 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Jun 8, 2024
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)
Projects
None yet
Development

No branches or pull requests

4 participants