Skip to content

feat(sw): Delete stale caches on service worker activate - #1068

Open
SharifIbrahimDev wants to merge 1 commit into
rinafcode:mainfrom
SharifIbrahimDev:feat/sw-delete-stale-caches
Open

feat(sw): Delete stale caches on service worker activate#1068
SharifIbrahimDev wants to merge 1 commit into
rinafcode:mainfrom
SharifIbrahimDev:feat/sw-delete-stale-caches

Conversation

@SharifIbrahimDev

Copy link
Copy Markdown

Closes #917

Summary of Changes

  • Configured versioned cache map CURRENT_CACHES in src/serviceWorker.ts.
  • Updated activate event listener to compare existing cache names against CURRENT_CACHES and delete any stale non-current caches upon activation.
  • Prevented accumulation of old JS/CSS deployment assets over time.

Technical Requirements Checklist

  • Implement versioned cache naming convention.
  • Iterate over cache keys and delete stale caches on activate.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@SharifIbrahimDev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete stale caches on service worker activate

1 participant