From cf03a4fab1b91ac8ae14b2db15ac5ab478ce2d90 Mon Sep 17 00:00:00 2001 From: Alex Osborne Date: Wed, 5 Nov 2025 11:16:43 +0900 Subject: [PATCH] Unregister the service worker when client_side_replay is off 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. --- pywb/templates/frame_insert.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pywb/templates/frame_insert.html b/pywb/templates/frame_insert.html index 1eecbc97..f0d2a393 100644 --- a/pywb/templates/frame_insert.html +++ b/pywb/templates/frame_insert.html @@ -53,12 +53,14 @@