Welcome! Log In Create A New Profile

Advanced

Re: Max File Size Allowed In Cache

Maxim Dounin
September 30, 2014 08:06AM
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-Length header is
present in a response, the proxy_no_cache combined with a map (or
embedded perl, or whatever) can be used to disable caching based
on the Content-Length header returned.

See here for documentation:

http://nginx.org/r/proxy_no_cache
http://nginx.org/r/map

--
Maxim Dounin
http://nginx.org/

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

Max File Size Allowed In Cache

abstein2 September 15, 2014 03:21PM

Re: Max File Size Allowed In Cache

martinproinity September 30, 2014 01:35AM

Re: Max File Size Allowed In Cache

Maxim Dounin September 30, 2014 08:06AM

Re: Max File Size Allowed In Cache

martinproinity September 30, 2014 11:38PM

Re: Max File Size Allowed In Cache

Maxim Dounin October 01, 2014 07:26AM

Re: Max File Size Allowed In Cache

martinproinity October 01, 2014 09:01PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
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