Skip to content

Version the service-worker cache to bust stale assets #1216

Description

@RUKAYAT-CODER

Background

Stale assets persist after a deploy because the SW cache is not versioned. Version and clean old caches on activate.

Files to modify (2-3)

src/utils/registerSW.ts
src/serviceWorker.ts

Acceptance Criteria

Implemented across the listed files

Unit/integration tests added or updated and passing

No regression; follows project coding standards

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions