sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFX loading the old version, new version only loaded after ctr+f5

Open SuleymanA opened this issue 4 years ago • 6 comments

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

  1. Create a SPFX webpart solutoin and publish it in the tenant app catalog
  2. Add the webpart to a site
  3. Update the webpart visually, solution version and publish again in tenant app catalog
  4. Webpart is still showing the old version

Expected behavior

Expect it to load the new version of the webpart.

SuleymanA avatar Jun 30 '22 09:06 SuleymanA

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jun 30 '22 09:06 ghost

One addition, clearing the site data does help to resolve the issue.

SuleymanA avatar Jun 30 '22 09:06 SuleymanA

@SuleymanA - thanks for reporting the issue. If you add ?sw=bypass to the url - does it solve the issue?

AJIXuMuK avatar Jun 30 '22 11:06 AJIXuMuK

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

ghost avatar Jul 07 '22 12:07 ghost

I didn't encounter the issue again. Will check using whether using "?sw=bypass" helps when it happens again.

SuleymanA avatar Jul 12 '22 09:07 SuleymanA

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

ghost avatar Jul 19 '22 12:07 ghost