[nginx] Image filter: downgrade strong etags to weak ones as nee...

Sergey Kandaurov pluknet at nginx.com
Mon Aug 18 08:05:42 UTC 2014


details:   http://hg.nginx.org/nginx/rev/8cdec62a7751
branches:  
changeset: 5806:8cdec62a7751
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Mon Aug 18 12:03:41 2014 +0400
description:
Image filter: downgrade strong etags to weak ones as needed.

diffstat:

 src/http/modules/ngx_http_image_filter_module.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 79553cb77747 -r 8cdec62a7751 src/http/modules/ngx_http_image_filter_module.c
--- a/src/http/modules/ngx_http_image_filter_module.c	Fri Aug 15 14:09:29 2014 +0400
+++ b/src/http/modules/ngx_http_image_filter_module.c	Mon Aug 18 12:03:41 2014 +0400
@@ -1012,6 +1012,7 @@ transparent:
     b->last_buf = 1;
 
     ngx_http_image_length(r, b);
+    ngx_http_weak_etag(r);
 
     return b;
 }



More information about the nginx-devel mailing list