Download full mp4 file with proxy_cache or proxy_store !!

Roman Arutyunyan arut at nginx.com
Mon Jun 23 14:32:09 UTC 2014


On 23 Jun 2014, at 16:47, shahzaib shahzaib <shahzaib.cb at gmail.com> wrote:

> @Roman thanks for reply,
> 
> >> your second request has a different cache key, so the
> file is downloaded again.
> 
> Means, if a user seeks through the video i.e http://url/test.mp4?start=99 , the whole file again gets downloaded or the partial part of the file from 99sec to onward gets downloaded ? If the whole file downloaded again each time, does nginx support something like, if user seeks through the video start=99 and the rest of the file gets download instead of the whole file ? Is the rsync only solution if not nginx?

If you have mp4 module enabled at the upstream, then partial mp4 (well, it’s not partial actually,
but transformed) is downloaded and cached.  If not then you should configure a proper proxy_cache_key
to download the whole file once from the upstream and serve the whole mp4 from the cache.


More information about the nginx mailing list