Skip to content

Blazor webassembly not reloading #46159

@garzatech

Description

@garzatech

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have created a blazor webassebly app hosted on an IIS site. When I deploy a new version it does update the browser with a new client. If I run in incognito mode the version is loaded.
I have tried added const variable with version number into the service-worker.js file namedj "const CACHE_VERSION = 0.23" I have also tried to manully reload using javascript command "windows.reload(true).
All options have not worked.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

netcore 6.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    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 WebAssemblyquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions