[nginx] Fixed $content_length cacheability with chunked (ticket #2252).
Maxim Dounin
mdounin at mdounin.ru
Tue Nov 16 14:51:22 UTC 2021
details: https://hg.nginx.org/nginx/rev/5354bf552520
branches: stable-1.20
changeset: 7968:5354bf552520
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed Oct 06 18:01:42 2021 +0300
description:
Fixed $content_length cacheability with chunked (ticket #2252).
diffstat:
src/http/ngx_http_variables.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
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 @@ ngx_http_variable_content_length(ngx_htt
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;
}
More information about the nginx-devel
mailing list