The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
For concurrent DEV and PROD versions, isolate DEV with different solution and component GUIDs—and, if necessary, a DEV-specific external CDN path—because Microsoft has not published a confirmed fix for the matching wrong-ClientSideAssets report.
Recommended isolation workaround
This is a practical workaround based on SPFx identity and hosting contracts, not a Microsoft-confirmed fix for the reported platform behavior.
- Create DEV-only identities
- In
config/package-solution.json, assign DEV a newsolution.id. - In every
*.manifest.json, assign DEV new componentidvalues. - Keep the PROD IDs unchanged.
// config/package-solution.json — DEV package { "solution": { "name": "contoso-webparts-dev", "id": "11111111-2222-4333-8444-555555555555", "version": "[IP Address]", "includeClientSideAssets": true } }
Migration impact: existing DEV page instances still reference the old component ID. Remove and re-add the DEV web part, then migrate or re-enter any stored properties. Do not change PROD IDs.// src/webparts/example/ExampleWebPart.manifest.json — DEV { "id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee", "alias": "ExampleWebPartDev", "componentType": "WebPart", "manifestVersion": 2 } - In
- Increment the DEV package version Use a four-part version in
package-solution.json. Incrementing it between releases is required for SharePoint to deploy the update correctly ^2^. - Build and deploy to the DEV site collection App Catalog For current Heft-based projects:
For older gulp-based projects, use that project’s supported equivalents:heft clean npm ci heft build --production heft package-solution --production
Replace and enable the package only in the DEV site collection App Catalog. This requires appropriate App Catalog administration rights; installing or replacing the app on DEV also requires suitable site administration rights.gulp clean gulp bundle --ship gulp package-solution --ship
Site collection App Catalog packages and included assets are scoped to that site collection. Assets are placed in its associated library and served through the CDN when Public CDN is configured ^3^.
Validate the existing packages
Before changing hosting, compare DEV and PROD:
- On each affected page, press Ctrl+F12.
- Open Manifests.
- Record:
- solution/component ID;
- component version;
- resolved script URL.
- Confirm whether DEV displays a manifest URL under PROD’s
ClientSideAssetsorigin, and vice versa.
The developer dashboard is specifically able to show which component version and URL SharePoint loaded ^4^.
Also inspect the built packages:
-
includeClientSideAssetsshould betruewhen SharePoint should package and host the bundles. -
write-manifests.jsonshould retain the placeholdercdnBasePathwhen using automatic Microsoft 365 CDN hosting; a real URL there is appropriate only for external hosting ^5^. - Do not hard-code
public-cdn.sharepointonline.comURLs. Microsoft documents that CDN URLs can change and recommends using page context when constructing asset URLs ^6^.
If you intentionally use an external CDN, set includeClientSideAssets to false and give DEV and PROD immutable, environment-specific paths through cdnBasePath ^7^.
Current issue status
The referenced Q&A thread matches the browser-order-dependent, cross-site CDN behavior, but it has no accepted resolution or formal root-cause statement ^8^. Therefore:
-
200 OK (from memory cache)supports browser reuse but does not by itself establish whether the defect is browser caching, SPFx module registration, or server-generated manifest resolution. - No supplied Microsoft advisory confirms that a recent CDN rollout caused this exact cross-site resolution behavior.
- If distinct identities still resolve to the wrong site, capture both sites’ developer-dashboard manifests, HAR files, package versions, App Catalog locations, timestamps, and tenant correlation IDs, then open a Microsoft 365 support case. That would indicate behavior outside the documented site collection App Catalog scope rather than React application logic.
References
- IClientSideManifestBase interface-Property Details
- Team-based development on the SharePoint Framework
- Use the site collection app catalog
- Use the developer dashboard
- Host an SPFx extension from the Microsoft 365 CDN (Hello World part 4)
- Use the Office 365 Content Delivery Network (CDN) with SharePoint Online
- Deploy your SharePoint client-side web part to Azure CDN
- SharePoint Framework Web Parts loading JS assets from incorrect CDN - Microsoft Q&A