]> git.kaiwu.me - nginx.git/commitdiff
Image filter: downgrade strong etags to weak ones as needed.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 18 Aug 2014 08:03:41 +0000 (12:03 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 18 Aug 2014 08:03:41 +0000 (12:03 +0400)
src/http/modules/ngx_http_image_filter_module.c

index c983b973b4646a965384b873a169a1a7d819bec2..bd7a3097015f39df6ad01748acb2eb1c10d7b844 100644 (file)
@@ -1012,6 +1012,7 @@ transparent:
     b->last_buf = 1;
 
     ngx_http_image_length(r, b);
+    ngx_http_weak_etag(r);
 
     return b;
 }