简体   繁体   中英

Blazor WASM - Errors on application after publishing ( due to cache i think)

After publishing website occurs some strange errors every time.

  • Unknown error occurred while trying to verify integrity.
  • service-worker.js:22 Uncaught (in promise) TypeError: Failed to fetch at service-worker.js:22.
  • Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]

When i open the web application on browser's icongito mode everything is ok, so i think the problems becomes from cache.

Also it occurs mainly on Chrome. On firefox is ok after first Ctrl + f5 refresh.

What can cause this strange behaviour, and what can be the solution?

After removing PWA(Progressive web application) the behaviour stopped to exists. The error occured from Offline cache on browser (Cache - Cache Storage - offline-cache). maybe in .NET 6 release will be better perforance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM