From 8c21ec30e82c98a704594b1314a981530dfbaa4c Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 27 Jan 2021 14:01:55 -0500 Subject: [PATCH] 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 --- ui/component/viewers/videoViewer/internal/videojs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index 2a81ce4c9..8a6831bcd 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -421,7 +421,7 @@ export default React.memo(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) {