# HG changeset patch # User Maxim Dounin # Date 1633532502 -10800 # Node ID 5354bf55252062ce865cd8c1dd6b7e6855b8bd25 # Parent 5de6a960632e11df4255c0aded18e43b1032e077 Fixed $content_length cacheability with chunked (ticket #2252). diff -r 5de6a960632e -r 5354bf552520 src/http/ngx_http_variables.c --- a/src/http/ngx_http_variables.c Tue Aug 31 17:54:54 2021 +0300 +++ b/src/http/ngx_http_variables.c Wed Oct 06 18:01:42 2021 +0300 @@ -1179,6 +1179,10 @@ v->no_cacheable = 0; v->not_found = 0; + } else if (r->headers_in.chunked) { + v->not_found = 1; + v->no_cacheable = 1; + } else { v->not_found = 1; }