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:
parent
99d7487bc2
commit
8c21ec30e8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue