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 communityI 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.
From my experience, there is no need for a hard refresh as long as you follow these steps:
package-solution.json
increment the the number in the version
propertygulp clean ; gulp bundle --ship ; gulp package-solution --ship
to build a new packageAs 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.