changeset 5806:8cdec62a7751

Image filter: downgrade strong etags to weak ones as needed.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 18 Aug 2014 12:03:41 +0400
parents 79553cb77747
children 6d468b45f40e
files src/http/modules/ngx_http_image_filter_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_image_filter_module.c
+++ b/src/http/modules/ngx_http_image_filter_module.c
@@ -1012,6 +1012,7 @@ transparent:
     b->last_buf = 1;
 
     ngx_http_image_length(r, b);
+    ngx_http_weak_etag(r);
 
     return b;
 }