Remove cache-control header from HLS queries (#118)

Also minor refactor around cachebusting

Fixes #117
This commit is contained in:
Matt Steele
2020-08-20 17:49:11 -07:00
committed by GitHub
parent 7aa7a70d43
commit cf7ff0a820
+1 -4
View File
@@ -48,10 +48,7 @@ class OwncastPlayer {
init() {
videojs.Hls.xhr.beforeRequest = function (options) {
const cachebuster = Math.round(new Date().getTime() / 1000);
options.uri = options.uri + "?omgwtf=" + cachebuster;
options.headers = {
'Cache-Control':'no-cache'
};
options.uri = `${options.uri}?cachebust=${cachebuster}`;
return options;
};