prevent caching on streaming url requests

Fixes an issue where the browser still thought a file wasn't transcoded because it was serving the cached response
This commit is contained in:
Sean Yesmunt 2021-01-27 14:01:55 -05:00
parent 99d7487bc2
commit 8c21ec30e8

View file

@ -421,7 +421,7 @@ export default React.memo<Props>(function VideoJs(props: Props) {
// Update video player and reload when source URL changes
useEffect(() => {
// For some reason the video player is responsible for detecting content type this way
fetch(source, { method: 'HEAD' }).then(response => {
fetch(source, { method: 'HEAD', cache: 'no-store' }).then(response => {
const player = playerRef.current;
if (!player) {