Skip to content

SPFx Copilot Apps Cache Old Versions of Javascript 24+ hours #11004

Description

@SimonDoy

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

Microsoft Edge - Version 151.0.4129.101
SPFX 1.24.0-beta.2

Describe the bug / error

I have been evolving the MyDay sample and adding in a MS Graph data source.
The Copilot App works beautifully in the Copilot Dashboard but would not work in the M365 Copilot App or https://m365.cloud.microsoft.
After releasing a few different versions, I realised that the version being loaded was stuck on an old version.
Following new solution, copilot component ids, deleting the agent, solution etc. I deployed a new version and it was still loading the old code.

However, running from Copilot App in MS Teams the new code was loading and the app was working.

Finally, this morning (after about 36 hours or so) the app is working in the M365 Copilot browser but not in the M365 Copilot App
This will be difficult for developers to evolve their solutions if they are testing things out in the proper apps before releasing to the organisation.

I have tried deleting browser cache, running in new browser work profile etc to make sure its not client side cache.

Steps to reproduce

  1. Build your Copilot App
  2. Deploy Copillot App and run in M365 Copilot App
  3. Update Copilot App, increase versions of solution and agent, deploy solution, add to teams, and run in M365 Copilot App and see old code running.

Expected behavior

New code is loaded following new solution deployment.

Working in M365 Copilot Website.

Image

Not working M365 Copilot App

Image Image

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions