Skip to content

SPFx loading old version files and sometimes from different environment #7008

Closed
@bhanuchintha

Description

@bhanuchintha

Target SharePoint environment

SharePoint Online

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

💥 SharePoint Framework

Developer environment

Windows

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

  • browser version - Edge latest
  • SPFx version - 1.11
  • Node.js version
  • etc

Describe the bug / error

  1. We have developed a custom SPFx component and deployed to different environments - Dev/Stg/UAT/Prod. We have enabled side loading in all the Dev/Stg/UAT environments. We have both the Extension & webpart in this SPFx solution. We observed that the XYZ-extension-application-customizer_16345316eb49d720a1d078eb095432g9.js is loading from local catalog instead of appcatalog folder in the higher/prod environments where side loading is not enabled

Actual:
https://publiccdn.sharepointonline.com/<>.sharepoint.com/teams/<>/ClientSideAssets/<>/XYZ-extension-application-customizer_<>.js

Expected:
https://publiccdn.sharepointonline.com/<>.sharepoint.com/sites/catalog/ClientSideAssets/<>/XYZ-extension-application-customizer_<>.js

  1. We have also observed that for some users the older version of file is getting loaded related to chunk.js and the functionality is breaking

  2. Also the webpart is observed in loading in the context of the lower environment site where we have almost 10 webpart properties. But, it has only 5 webpart properties in higher/prod environment

  3. If we are deleting the "Cookies and other site data" and "Cached images and files" and doing a fresh request in higher/prod site - everything is working fine.

All this was working properly till Apr 28th. We feel this issue has come up suddenly and guessing any environment issue. Can you please let us know the possible cause for this issue and the resolution.

Steps to reproduce

  1. Develop SPFx webpart
  2. Deploy in more than one site collection
  3. Open the lower env where the side loading is enabled in one tab
  4. Open the higher/prod env site where the side loading is disabled in other tab
  5. In the environment/site opened in second tab, we see the files are loaded from lower environments and not from respective environment.
  6. IF we reverse the opening order of the sites, it is behaving in opposite way
  7. Only the first opened environment is working fine
  8. If we are deleting the "Cookies and other site data" and "Cached images and files" and doing a fresh request in higher/prod site - everything is working fine.

Expected behavior

Irrespective of how many sites are opened that has the same SPFx webpart - webpart should load the respective files from its own package and not from other site associated package and also not from the older versions of the spfx webpart assoiated files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍Awaiting categorization and initial review.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions