From c960f6488fc71674a5c0577be41132ed9c063ab1 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 11 Mar 2022 12:22:50 -0800 Subject: [PATCH] Replace timestamp for cachebuster with rand string. Closes #1781 --- webroot/js/components/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js index 53b4affaa..9f76b34b0 100644 --- a/webroot/js/components/player.js +++ b/webroot/js/components/player.js @@ -65,7 +65,7 @@ class OwncastPlayer { videojs.Vhs.xhr.beforeRequest = (options) => { if (options.uri.match('m3u8')) { - const cachebuster = Math.round(new Date().getTime() / 1000); + const cachebuster = Math.random().toString(16).substr(2, 8); options.uri = `${options.uri}?cachebust=${cachebuster}`; } return options;