Problems with cache by mime/type

2018-11-29 Thread Jorge Pereira
Hi, I am using the nginx/1.12.0 and I am trying to use the below config. but, the below "map" by "$upstream_http_content_type" is always matching with default value "1". but, if I remove "proxy_cache_bypass" then the map it works. therefore, I need the "proxy_cache_bypass " capability. http { i

Re: Inner workings of nginx cache manager

2018-11-29 Thread Maxim Dounin
Hello! On Thu, Nov 29, 2018 at 03:23:51PM +0100, Stefan Safar wrote: > Hi there, > > I'd like to know a little bit more about the inner workings of the cache > manager. I looked through the code, and if I understand it correctly, when > it runs out of disk space specified by max_size, it tries t

Inner workings of nginx cache manager

2018-11-29 Thread Stefan Safar
Hi there, I'd like to know a little bit more about the inner workings of the cache manager. I looked through the code, and if I understand it correctly, when it runs out of disk space specified by max_size, it tries to run the cache manager, which looks at a queue of last-accessed URLs and tries t