Replace timestamp for cachebuster with rand string. Closes #1781

This commit is contained in:
Gabe Kangas 2022-03-11 12:22:50 -08:00
parent a8167dc9e0
commit c960f6488f
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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;