Open Bug 1343229 Opened 8 years ago Updated 3 years ago

video cache

Categories

(Core :: Audio/Video: Playback, defect, P3)

54 Branch
x86
Windows 10
defect

Tracking

()

People

(Reporter: misik.dmitriy, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Steps to reproduce: STR: 1. open tab 2. videoContent.src = srcURL; in my JS file 3. videoContent.load(); 4. video loads, all OK 5. after a while, video changed on server 6. reload page Actual results: old video is shown Expected results: the new video is shown
I think that video is cached because second request wasn't sent to server
Could you provid a testcase, please.
Flags: needinfo?(misik.dmitriy)
https://github.com/misikdmitriy/firefox-cache - here is repository 1. clone repository to your local machine; 2. open command prompt in project root folder and enter "npm install"; 3. then enter "npm start"; 4. open page "localhost:3000" in your browser. you should see the video; 5. copy "video2.mp4" from folder "original" in project root folder; 6. remove "video.mp4" in root folder; 7. rename "video2.mp4" into "video.mp4"; 8. refresh page. You see old video. What is the reason? Is this cache?
Build ID: 20170302030206 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 Reproducible on Firefox Nightly 54.0a1(2017-03-02)(64-bit) on Windows 10 x 64.
Status: UNCONFIRMED → NEW
Component: Untriaged → Networking: Cache
Ever confirmed: true
OS: Unspecified → Windows 10
Hardware: Unspecified → x86
Component: Networking: Cache → Audio/Video: Playback
I guess we clone the old MediaCache here http://searchfox.org/mozilla-central/source/dom/html/HTMLMediaElement.cpp#2446 because the new url is the same as old url!?

Reporter answered the needinfo.

Flags: needinfo?(misik.dmitriy)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.