From 11ff62ae7277329176c9bb113c02b37e163456f1 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 29 Dec 2023 19:46:19 +0000 Subject: [PATCH] fix cache --- html/poketube.ejs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html/poketube.ejs b/html/poketube.ejs index b5fa14aa..88343bc4 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1685,6 +1685,10 @@ checkbox.addEventListener('change', function(e) { } } }); + +var cacheVersion = 1; + +caches.delete('offline-cache' + cacheVersion) if (/[?&]autoplay=/.test(location.search)) { checkbox.checked = true; @@ -2948,6 +2952,9 @@ function jumpToTime(e) { }, 250); } + var cacheVersion = 1; + + caches.delete('offline-cache' + cacheVersion) // Handle click events for time-based links const timeLinks = document.querySelectorAll('a[data-onclick="jump_to_time"]');