Browse Source

Replace timestamp for cachebuster with rand string. Closes #1781

pull/1782/head
Gabe Kangas 4 years ago
parent
commit
c960f6488f
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 2
      webroot/js/components/player.js

2
webroot/js/components/player.js

@ -65,7 +65,7 @@ class OwncastPlayer { @@ -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;

Loading…
Cancel
Save