You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I load the application, the first time it cached all data, into the browser cache, but at the time of the new build release, the browser still showing old data which is already cached, I need to perform a hard reload Ctrl + Shift + R.
Any Fix Available except Cache Buster Technique?
The text was updated successfully, but these errors were encountered:
'New content is available and will be used when all '+
'tabs for this page are closed. See https://cra.link/PWA.'
);
// Execute callback
if(config&&config.onUpdate){
config.onUpdate(registration);
}
Your onUpdate callback function could do whatever you want; it can notify the user about the update and ask them if they want to stay on the old version or reload for the new version, or it could just forcibly perform that upgrade without asking anything.
The following code would do that forced update without asking:
index.js
serviceWorkerRegistration.register();
If I load the application, the first time it cached all data, into the browser cache, but at the time of the new build release, the browser still showing old data which is already cached, I need to perform a hard reload Ctrl + Shift + R.
Any Fix Available except Cache Buster Technique?
The text was updated successfully, but these errors were encountered: