Ask Your Question
0

How can I clear the cache on Azure App Service for a Blazor wasm self-hosted application?

asked 2023-05-09 17:03:29 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-09 17:06:01 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-09 17:03:29 +0000

Seen: 13 times

Last updated: May 09 '23