Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache - Is there a way to cancel file caching from header filter?

April 13, 2011 05:48AM
On Wed, Apr 13, 2011 at 12:03:29PM +0300, Anatoli Marinov wrote:
> Hello,
> Is there a way to cancel file caching from header filter?
>
> I am using nginx as a reverse proxy and proxy_cache for caching and this
> configuration serves flv files.
>
> Standard flv module cannot work with proxy_cache so start= argument is
> not understand by the nginx. There is other internal server (typically a
> cloud of them) that understands the argument and return a chunk from the
> file - starting from desired position. After this file is received from
> the nginx by its upstream it will be cached.
>
> These chunked files should not been cached because they do not contain
> the whole content of the original file.
> So I have written new header filter and in this filter for given file I
> can take a decision to cache it or not. By default proxy_cache will
> cache this file so can I cancel this?

The simplest way is to set "X-Accel-Expires: 0" in a response
of server that sends chunk.

Other way in configuration:

proxy_cache_bypass $arg_start;
proxy_nocache $arg_start;


--
Igor Sysoev

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

proxy_cache - Is there a way to cancel file caching from header filter?

toli 2275 April 13, 2011 05:04AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

Igor Sysoev 818 April 13, 2011 05:48AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

toli 1244 April 13, 2011 06:50AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

toli 1058 April 13, 2011 07:52AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

Eugaia 991 April 13, 2011 11:20AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

toli 1079 April 14, 2011 04:04AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 258
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready