MP4 files are sometimes downloaded, and other times they play in the browser.
What is the difference between these two links?
1) If you open this URL in Chr
First link has Content-Type: application/octet-stream
header, while the second one Content-Type: video/mp4
.
With Serg's answer , I would also like to add about Content-Disposition
header . If you set the Content-Disposition as inline
, then your video/content will play within the browser and if you set Content-Disposition as attachment
, then your browser will download it .
More info on this can be found here .