Module ngx_http_headers_module - nginx
http://nginx.org › docs › http › ng...Adds the specified field to a response header provided that the response code equals 200, 201 (1.3.10), 204, 206, 301, 302, 303, 304, 307 (1.1.16, 1.0.13), ...
Nginx returns HTTP 200 with Content-Length: 0
forum.nginx.org › readJun 11, 2011 · nginx sometimes returns HTTP 200 with Content-Length: 0 for a while, and the. duration is approximately 5 minutes ( when "proxy_cache_valid 200 301 5m;" is. configured in server section), or 10 minutes (when "proxy_cache_valid 200 301. 10m;" is configured in server section). I really have no idea why this. happens. Any information is appreciated.