SPFX loading the old version, new version only loaded after ctr+f5
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
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- Chrome version: Version 102.0.5005.115
- SPFx version: 1.14
- Node.js version: 14.19.1
Describe the bug / error
Since a few days updating the solution package doesn't reflect on the sites where the webparts are used. Updating the solution version and updating the solution on site level doesnt help. Hard refresh with ctr+f5 helps to load the new package but only in that cyle. When the page is reloaded the old solution is loaded again. Seems to be related to multiple issues reported earlier this year like: https://github.com/SharePoint/sp-dev-docs/issues/7664
Steps to reproduce
- Create a SPFX webpart solutoin and publish it in the tenant app catalog
- Add the webpart to a site
- Update the webpart visually, solution version and publish again in tenant app catalog
- Webpart is still showing the old version
Expected behavior
Expect it to load the new version of the webpart.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
One addition, clearing the site data does help to resolve the issue.
@SuleymanA - thanks for reporting the issue.
If you add ?sw=bypass to the url - does it solve the issue?
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author
I didn't encounter the issue again. Will check using whether using "?sw=bypass" helps when it happens again.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues