Skip to content

Conversation

@ato
Copy link
Collaborator

@ato ato commented Nov 5, 2025

Description

This change makes pywb unregister the wabac.js serviceworker when client_side_replay: false is set.

Motivation and Context

If you have client_side_replay on and later turn it off, prior visitors will still have it registered in their browser unless they manually remove it through devtools or by clearing site data. While we don't expect to be regularly flipping it on and off in production, it's important to be able to roll back to the previous configuration if an issue is discovered.

Screenshots (if appropriate):

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed.

@tw4l tw4l requested review from ikreymer and tw4l November 6, 2025 15:25
If you have client_side_replay on and later turn it off,
prior visitors will still have it registered in their browser until it expires unless they manually remove it through devtools or by clearing site data. While we don't expect to be regularly flipping it on and off in production, it's important to be able to roll back to the previous configuration if an issue is discovered.
@ato ato force-pushed the unregister-serviceworker branch from 7aade13 to cf03a4f Compare November 7, 2025 07:29
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.

2 participants