Re: limit requests and CORS Policy

2020-12-28 Thread Ali Mohsin
Hello, I have solved the issue, the problem was because of low request limit, I had to add burst of 10 to make it work and I also changed my configuration to the following. limit_req_zone $binary_remote_addr$request_uri zone=mylimit:10m rate=5r/s; and then limit_req zone=mylimit burst=10 nodelay;

proxy_cache control via HTTP/2 trailing headers

2020-12-28 Thread Claudiu
Hi, I'm wondering if there is a way to instruct nginx to cache or not a backend response based on trailing headers? Use-case is that backend does some heavy longer running streaming work that in some edge cases may fail midway. As the response is already streaming I need to tell nginx to not