dotnet / dotnet/aspnetcore

Service Worker is not updated on save or build

Open
#47,388 11 comments 0 reactions 0 assignees View on GitHub
area-blazor bug feature-pwa Pillar: Technical Debt Priority:3
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe the bug

When updating the service worker, the built version in the bin folder is never updated. This is true whether you save or build. A Rebuild does replace the file in the bin folder.

*This is not an issue with the browser not picking up a new version of the service worker.

### Expected Behavior

Changes to any files in the project should be reflected in the working directory

### Steps To Reproduce

This bug exists in a brand-new project using VS 2022, latest and preview.

### Exceptions (if any)

_No response_

### .NET Version

7

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.