Skip to content

[Blazor Wasm] Clearing cache after new deploy #20408

@mihaimyh

Description

@mihaimyh

I was searching for a way to force the browser to refresh/clear it's cache whenever I am deploying a new version of a Blazor Wasm app.

Currently, when a new deploy is made the browser still shows the old version of the app until I force reload it using CTRL+F5, but on mobile this process can only be done by accessing browser's settings and manually clearing cache there.

You can imagine that all users must manually clear their cache to see an updated version of the app, unless I am doing something wrong here.

Is there a way to simplify this whenever a new version of the app is published?
I am also using Cloudflare, is there a way their cache can be automatically refreshed too with a new app publish?

Metadata

Metadata

Labels

✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions