Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Revert sw.js cache-name fiddling — reverted CACHE_NAME back to the v4 it was on before this debugging session and removed the meta-commentary block I added above the constant; bumping the SW cache was not what was fixing or breaking anything during the speaker-modal scroll debugging — the actual fixes were the content-visibility rewrite and the table-layout fix, neither of which depend on the SW cache; bumping it on every commit was noise and the comment was an inaccurate post-hoc justification

Murtaza Nasir8bfa948a0d19
diff --git a/static/sw.js b/static/sw.js
index 1a0e905c..a15f7a4f 100644
--- a/static/sw.js
+++ b/static/sw.js
@@ -1,10 +1,4 @@
-// Bump this version whenever any cached asset (app.modular.js, styles.css,
-// vendor JS, the i18n module, the offline page) changes — otherwise the
-// service worker keeps serving the previously-cached copy and users see
-// stale code even after a hard refresh. Forgetting to bump this was what
-// made the speaker-modal scroll fixes appear to do nothing: the SW kept
-// serving the broken pre-fix app.modular.js.
-const CACHE_NAME = 'Speakr-cache-v10';
+const CACHE_NAME = 'Speakr-cache-v4';
const ASSETS_TO_CACHE = [
'/',
'/static/offline.html',