Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed $content_length cacheability with chunked (ticket #2252).

Maxim Dounin
October 06, 2021 01:14PM
details: https://hg.nginx.org/nginx/rev/ae7c767aa491
branches:
changeset: 7930:ae7c767aa491
user: Maxim Dounin <mdounin@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 bfad703459b4 -r ae7c767aa491 src/http/ngx_http_variables.c
--- a/src/http/ngx_http_variables.c Wed Sep 22 10:20:00 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;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed $content_length cacheability with chunked (ticket #2252).

Maxim Dounin 174 October 06, 2021 01:14PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready