Open thenhthang opened 1 year ago
I'm having the same issue.
Any news?
I have the same issue in my WASM project, let me know if you figured it out.
Same here with my WASM project.
Any news?
Hi everyone, Unfortunately, in my experience, I have not succeeded in reproducing the problem everyone reported yet.
But anyway, could someone try the code change below and give us the report on whether the changes resolve your problem?
If you could, please change your fallback page, such as "index.html", by replacing the line below:
<script src="_content/Toolbelt.Blazor.PWA.Updater.Service/script.min.js"></script>
with:
<script src="_content/Toolbelt.Blazor.PWA.Updater.Service/script.min.js" no-register></script>
<script>
navigator.serviceWorker.register('service-worker.js', { updateViaCache: 'none' }).then(registration => {
Toolbelt.Blazor.PWA.Updater.handleRegistration(registration);
});
</script>
I suspect the problem is related to the browser's caching for the "service-wroker.js".
And, another reason that I could come up with is that the problem might be related to the CDN. I would appreciate it if you could provide the information on where you deployed your Blazor Wasm app, such as GitHub Pages, Azure App Service, Amazon S3, etc.
Hello jsakamoto. Thank you for sharing. I have used this library in my application. I have the following problem: Sometimes it doesn't update automatically right away. I press Ctr+F5 to update to the new version, but after shutting down and reopening it, it's still the old version. Until the update notification appeared (about 30 minutes after publishing), I pressed update to upgrade to the new version, I tried shutting down the application and reopening it, the application was still the new version. I want to ask: