Re: Max File Size Allowed In Cache

2014-10-01 Thread martinproinity
Thanks Martin! That works. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253260,253687#msg-253687 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Max File Size Allowed In Cache

2014-10-01 Thread Maxim Dounin
Hello! On Tue, Sep 30, 2014 at 11:38:59PM -0400, martinproinity wrote: > Thanks Maxim. Is it possible the filter on a value "larger than" or "smaller > than"? How would the regex in the map block look like? e.g. smaller than > 100? > > I tried something like this, which is not working: > map

Re: Max File Size Allowed In Cache

2014-09-30 Thread martinproinity
Thanks Maxim. Is it possible the filter on a value "larger than" or "smaller than"? How would the regex in the map block look like? e.g. smaller than 100? I tried something like this, which is not working: map $upstream_http_content_length $docache { default 0; "~*([1-9

Re: Max File Size Allowed In Cache

2014-09-30 Thread Maxim Dounin
Hello! On Tue, Sep 30, 2014 at 01:35:30AM -0400, martinproinity wrote: > would be interesting to know the answer to this questions as I was wondering > as well if that is possible. As of now there is no easy way to limit caching based on a response size. In simple cases, when the Content-Lengt

Re: Max File Size Allowed In Cache

2014-09-29 Thread martinproinity
would be interesting to know the answer to this questions as I was wondering as well if that is possible. Thanks for the response! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253260,253608#msg-253608 ___ nginx mailing list nginx@nginx.org

Max File Size Allowed In Cache

2014-09-15 Thread abstein2
Is there any way to limit the maximum size of an individual object in a proxy cache? Looking through the documentation ( http://nginx.org/en/docs/http/ngx_http_proxy_module.html ) I'm not seeing anything directly related to that. I might be misunderstanding the proxy_temp_file_write_size or proxy_