We are deploying our React application on the apache server using the Jenkins pipeline. When we deploy new codes, most of the new features work fine but not for all changes reflect the latest in the browser. Users have to open an incognito window or clear cache to see the new feature.
I have seen a few solutions related to angular applications But anything specific to React application, I do not see anywhere. During the build time, Can we add something that will automatically serve the latest changes for end-user? I guess, Cache busting is required But how can we do without a lot of modification in the code, as the above solution did for Angular app.