When deploying Excel add-ins via the Office 365 administrator method, the client may not automatically refresh to the new code after an update due to caching issues. Here are some important points to consider:
- Caching: Office applications often cache add-in manifests and resources to improve performance. This can lead to situations where updates are not reflected immediately. Clearing the Office cache can help ensure that the latest version of your add-in is being used. You can follow the instructions to Clear the Office cache.
- Version Number: It's crucial to update the version number in the manifest file each time you make changes. This signals to the Office client that a new version is available. If the version number is not updated, the client may not recognize that an update has occurred.
- Admin Consent: If the add-in is deployed within an organization, some changes may require admin consent before they are applied to users. Ensure that any necessary permissions or consent have been granted for the updated version.
- Sideloading: If you are testing changes, consider sideloading the add-in to see if the updates reflect correctly. This can help isolate whether the issue is with the deployment method or the add-in itself.
- Network Tab Debugging: As you discovered, disabling the cache in the debugger can force the client to load the latest version. This is a useful troubleshooting step but should not be necessary for regular updates.
In summary, while the client should ideally refresh to the new code automatically after an update, caching issues can interfere with this process. Regularly clearing the cache and ensuring the version number is updated are key practices to facilitate smoother updates.