mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 07:51:31 +00:00
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
|
// Update video player and reload when source URL changes
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// For some reason the video player is responsible for detecting content type this way
|
// 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;
|
const player = playerRef.current;
|
||||||
|
|
||||||
if (!player) {
|
if (!player) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue