Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clean out Blazor WebAssembly DLLs from browser?

I ran two sample Blazor WebAssembly apps accidentally on same port at https://localhost:44381, then things are messed up. One of the apps is erroring out because it tried and failed to load DLLs from the other sample app. I tried going to browser's devtool Application > Clear storage, but no help. How do I totally clean out the DLLs of a Blazor WebAssembly app from browser so that I could start fresh again?

like image 940
Ray Avatar asked Jan 22 '26 14:01

Ray


1 Answers

Blazor WASM applications from version 3.1 download a file blazor.boot.json which lists the assemblies along with a sha256 hash to indicate the version. These assemblies are now downloaded to the browser's Application Cache Storage (see example below).

DevTools showing Cache Storage area

Application -> Clear storage should work - check that Application cache is selected on the Application -> Clear storage page:

Chrome Clear Storage page

Using the Empty Cache and Hard Reload will not clear out this cache, but will reload the blazor.boot.json file, and if the cached files have changed (the hash is different) then they should be reloaded.

You can also clear out individual assemblies from the Cache Storage view - right-click and you can delete them. When you refresh the application, Blazor will download the latest version.

like image 98
Quango Avatar answered Jan 25 '26 12:01

Quango