# Cache and mobile video playback

**URL:** <https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830>\
**Category:** NGINX\
**Created:** [June 21, 2012, 4:14pm UTC](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830 "2012-06-21T16:14:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 21, 2012, 4:14pm UTC](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830/1 "2012-06-21T16:14:05Z")

</div>

Hello,

We are using nginx as a load balancer for mp4 videos. Everything works  
perfectly but we started having issues with mobile video playback.

Somehow the video, after it’s stored on the nginx cache, can’t be played  
back on mobiles. Has anyone come across this?

Any hints would be much appreciated.

thanks.

---

<div class="post-metadata">

**Author:** ![SSFernando\_FlS\_rezS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@SSFernando\_FlS\_rezS](https://www.ruby-forum.com/u/SSFernando_FlS_rezS)\
**Post date:** [June 22, 2012, 6:35pm UTC](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830/2 "2012-06-22T18:35:30Z")

</div>

Hello,

I don’t know if it applies to your situation but I ran into a similar  
problem. Details (and patch from Maxim) here:

> **[nginx-Range header-proxy cache- potential patch](https://forum.nginx.org/read.php?2,225815)**
>
> Hello, I'm currently using nginx to serve "small" video files (\<2MB) to mobile devices. The way I set it up is as follow: 2 nginx servers reverse proxying with cache 1 upstream server where the files are actually uploaded It's all...

Hope this helps,

Antoine.

---

<div class="post-metadata">

**Author:** ![SSFernando\_FlS\_rezS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@SSFernando\_FlS\_rezS](https://www.ruby-forum.com/u/SSFernando_FlS_rezS)\
**Post date:** [June 25, 2012, 4:04am UTC](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830/3 "2012-06-25T04:04:54Z")

</div>

Thank you. Just tried applying the patch to nginx 1.2.1 but seems it is  
(somehow) already implemented.

We still hit this bug. Any other suggestions?

Thanks a lot!

2012/6/22 Antoine B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![SSFernando\_FlS\_rezS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d26b3c/32.png) [@SSFernando\_FlS\_rezS](https://www.ruby-forum.com/u/SSFernando_FlS_rezS)\
**Post date:** [June 25, 2012, 12:48pm UTC](https://www.ruby-forum.com/t/cache-and-mobile-video-playback/220830/4 "2012-06-25T12:48:29Z")

</div>

Hello!

On Sun, Jun 24, 2012 at 09:04:16PM -0500, Fernando Flórez wrote:

> Thank you. Just tried applying the patch to nginx 1.2.1 but seems it is  
> (somehow) already implemented.

It’s not. Note that forum interface corrupts whitespaces, and  
it’s like the reason why you weren’t able to apply the patch  
cleanly. Try grabbing it from mailing list archive directly here:

> **[nginx-Range header-proxy cache- potential patch](http://mailman.nginx.org/pipermail/nginx/2012-April/033517.html)**

I’m not sure that you the same issue as Antoine though, as you  
claim to have problems with files already in cache, which is  
different from Antoine case (he had problems with files  
being loaded into cache).

> We still hit this bug. Any other suggestions?

If your issue isn’t exactly the same as Antoine’s one - please dig  
further into what goes on.

Maxim D.

> > problem. Details (and patch from Maxim) here:
> > 
> > > We are using nginx as a load balancer for mp4 videos. Everything works
> > > 
> > > * * *
> > > 
> > > nginx mailing list  
> > > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > > [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)
> > 
> > * * *
> > 
> > nginx mailing list  
> > [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)
