I have deployed the SPFx solution on SharePoint. Changes are not updated until we hard refresh the page.
Need the solution for auto refresh the site page.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
From my experience, there is no need for a hard refresh as long as you follow these steps:
package-solution.jsonincrement the the number in the
gulp clean ; gulp bundle --ship ; gulp package-solution --shipto build a new package
As long as you change the bundle version, the URL of your bundle will change, thus your browser won't use a cached bundle. If you do not increment the version, then your browser will have no way of knowing that it needs to grab a new version.