Forum Discussion
MrTimn
Oct 24, 2023Copper Contributor
Force teams to retrieve latest static web application code.
How do I force Microsoft Teams (new and classic) to retrieve latest static web application code? I've deployed a change to my application, but cannot see it in app. Refreshing in teams, and signing...
- Nov 10, 2023MrTimn- Yes, it is known issue in new Teams windows. Engineering team working on this. We will let you know once we have any update.
MrTimn
Nov 03, 2023Copper Contributor
Requirement:
I want Teams to not load my static web application from cache.
Static web app version: 1.0.7.005
Repro steps: Make changes to my static web application, update version number to 1.0.8.000 and deploy
Load static web application by navigating to it in a browser (Not using teams at all). See that version number is correctly 1.0.8.000
Open Microsoft Teams, select my application.
Inspect version number. Version number is still 1.0.7.005 the previous version of the application. It appears that the page request was cached instead of fetched new.
Can I force teams request the latest version of the site?
I want Teams to not load my static web application from cache.
Static web app version: 1.0.7.005
Repro steps: Make changes to my static web application, update version number to 1.0.8.000 and deploy
Load static web application by navigating to it in a browser (Not using teams at all). See that version number is correctly 1.0.8.000
Open Microsoft Teams, select my application.
Inspect version number. Version number is still 1.0.7.005 the previous version of the application. It appears that the page request was cached instead of fetched new.
Can I force teams request the latest version of the site?
Sayali-MSFT
Microsoft
Nov 08, 2023MrTimn - Microsoft Teams does not have a built-in feature to force a refresh of a static web application. The caching behavior is primarily controlled by the browser and the server where your static web application is hosted.
Could you please help by suggesting this feature on - Microsoft Teams ยท Community
- MrTimnNov 09, 2023Copper ContributorI was able to find a workaround on Teams for Mac. I can right click the screen and Inspect the application. From there I navigate to the network tab and check the 'disable cache' option.
It only works on Mac OS though. For some reason "New Teams" on Windows does not have the inspect option.
Thank you for your help.- Sayali-MSFTNov 10, 2023
Microsoft
MrTimn- Yes, it is known issue in new Teams windows. Engineering team working on this. We will let you know once we have any update.