mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Replace timestamp for cachebuster with rand string. Closes #1781
This commit is contained in:
parent
a8167dc9e0
commit
c960f6488f
@ -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…
x
Reference in New Issue
Block a user