nginx + caching of static files

Maxim Dounin mdounin at mdounin.ru
Wed Apr 8 17:37:31 MSD 2009


Hello!

On Wed, Apr 08, 2009 at 03:18:18PM +0400, Igor Sysoev wrote:

> On Wed, Apr 08, 2009 at 11:16:30AM +0000, Glen Lumanau wrote:
> 
> > How about jpg, css, js or any other files?
> 
> No problems with these files. Actually, there are no problems with flv
> itself. The issue is when you want to get /some.flv?start=5000.
> However, it seems flv handler can be converted easy enough to filter.

I wrote generic bytes filter some time ago, and as far as I 
understand it may be used for .flv streaming with some trivial 
rewrites.  I've never tried though.

http://mdounin.ru/hg/ngx_http_bytes_filter_module/
http://mdounin.ru/hg/ngx_http_bytes_filter_module/raw-file/tip/README

Maxim Dounin

> 
> > ------Original Message------
> > From: Igor Sysoev
> > Sender: owner-nginx at sysoev.ru
> > To: nginx at sysoev.ru
> > ReplyTo: nginx at sysoev.ru
> > Subject: Re: Re: nginx + caching of static files
> > Sent: Apr 8, 2009 6:04 PM
> > 
> > On Wed, Apr 08, 2009 at 10:51:59AM +0800, ???? wrote:
> > 
> > > Dear Igor,
> > >  				
> > > Then, how to use proxy_cache WITH flv streaming?
> > > I tried proxy_cache feature, but it seems that the flv streaming function does not work with proxy_cache.
> > 
> > No, flv is not filter, but handler, thefore it's not possible.
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 





More information about the nginx mailing list