Closed wynntee closed 2 months ago
@grangeryy plz take a follow. I've contacted with jinlong.
@wynntee thank you for reporting the issue. We'll investigate the issue soon. @jiju-MS
Thank you @wynntee for you suggestion. Another way which might better help you is the link of https://aka.ms/m365dev-suggestions called Microsoft 365 Developer Platform Ideas Forum for Microsoft 365 Developers Platform. You can see if your suggestion has been requested or request a new one if not. And please let us know if you add one. Thanks.
Thank you @RuizhiSunMS. I've created a new suggestion.
Thank you @RuizhiSunMS. I've created a new suggestion.
roger that.
Transferring this issue to the office-js repo, where product issues can be better tracked.
Hi @wynntee, do you still encounter this issue now? I recently debugged on my side and found that every time the add-in is reinserted, CF metadata will be forced to update, and the newly added custom function will also appear in the Formula list.
Hi @rundongmsft , yes the issue persists. The point is we shouldn't have to re-insert the add-in. Changes on the server-side should be reflected automatically. We cannot expect end-users to keep re-inserting the add-in just to refresh the cache.
Expected behavior
Excel should fetch the latest JSON metadata file from the server, by respecting the HTTP Cache-Control header.
Current behavior
Excel permanently caches the JSON metadata file. As a result, users do not have access to any new custom functions since the file was cached.
The only ways to get Excel to fetch the latest JSON file are: (1) Submit a new manifest, even though the manifest is unchanged, which seems a bit silly. (2) Reinsert the Add-in from Office Store. (3) Clear the Office Cache.
All of the above seems unnecessarily complicated, when we could simply respect the HTTP cache controls returned by the server.
Incidentally, cache controls for the HTML and JavaScript files are respected. So why can't we treat the JSON metadata file in the same way?
Steps to Reproduce
Context