Re: Prevent reverse proxy from sending range headers to source server

2016-02-05 Thread Maxim Dounin
Hello! On Thu, Feb 04, 2016 at 08:38:15PM -0500, FSC wrote: > Hello everyone! > > I set up my reverse proxy to cache files stored at AWS S3. I want to > minimize the amount of traffic generated at AWS. > > Many of the files are mp4s. Clients make GET requests with the range set. A > video playe

Re: Prevent reverse proxy from sending range headers to source server

2016-02-05 Thread FSC
No idea how I missed that. Thank you very much! Also for people that might find this thread later: Adding the parameter "updating" to the directive "proxy_cache_use_stale" is important as well if you want to minimize the traffic the origin server generates. proxy_cache_use_stale updating; proxy

Re: Prevent reverse proxy from sending range headers to source server

2016-02-04 Thread Robert Paprocki
>From the docs ( http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header): If the value of a header field is an empty string then this field will not be passed to a proxied server: proxy_set_header Range ""; proxy_ignore_header is meant to handle response headers, not request

Prevent reverse proxy from sending range headers to source server

2016-02-04 Thread FSC
Hello everyone! I set up my reverse proxy to cache files stored at AWS S3. I want to minimize the amount of traffic generated at AWS. Many of the files are mp4s. Clients make GET requests with the range set. A video player may get multiple chunks of a file at once. How can I have the proxy serve