Mercurial > hg > nginx
comparison src/http/modules/ngx_http_xslt_filter_module.c @ 5733:e491b26fa5a1
Entity tags: downgrade strong etags to weak ones as needed.
See http://mailman.nginx.org/pipermail/nginx-devel/2013-November/004523.html.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 26 Jun 2014 02:21:01 +0400 |
parents | 314c3d7cc3a5 |
children | a72886067bbb |
comparison
equal
deleted
inserted
replaced
5732:d0ce06cb9be1 | 5733:e491b26fa5a1 |
---|---|
335 if (r->headers_out.content_length) { | 335 if (r->headers_out.content_length) { |
336 r->headers_out.content_length->hash = 0; | 336 r->headers_out.content_length->hash = 0; |
337 r->headers_out.content_length = NULL; | 337 r->headers_out.content_length = NULL; |
338 } | 338 } |
339 | 339 |
340 ngx_http_clear_etag(r); | |
341 | |
342 conf = ngx_http_get_module_loc_conf(r, ngx_http_xslt_filter_module); | 340 conf = ngx_http_get_module_loc_conf(r, ngx_http_xslt_filter_module); |
343 | 341 |
344 if (!conf->last_modified) { | 342 if (!conf->last_modified) { |
345 ngx_http_clear_last_modified(r); | 343 ngx_http_clear_last_modified(r); |
344 ngx_http_clear_etag(r); | |
345 | |
346 } else { | |
347 ngx_http_weak_etag(r); | |
346 } | 348 } |
347 } | 349 } |
348 | 350 |
349 rc = ngx_http_next_header_filter(r); | 351 rc = ngx_http_next_header_filter(r); |
350 | 352 |