Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To clear the cache on an Azure App Service for a Blazor wasm self-hosted application, follow these steps:

  1. From the Azure portal, navigate to the App Service for your Blazor wasm self-hosted application.

  2. Go to the Configuration section and then click on the Application settings link.

  3. Scroll down to the App settings section and add a new app setting with the key name DOTNETBUNDLEEXTRACTBASEDIR and set its value to a new empty directory.

  4. Save the changes.

  5. Next, go to the Console section of the App Service and run the command dotnet clean to delete all the build artifacts and cached files.

  6. Finally, restart the App Service to ensure that all the changes take effect.

After performing these steps, the cache for your Blazor wasm self-hosted application on the Azure App Service should be cleared.