summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2017-10-18 14:53:10 +0200
committerGitHub <noreply@github.com>2017-10-18 14:53:10 +0200
commit2d46dbcbfd122eaf1686623cf8cf319178e31109 (patch)
tree0cf1915c8346ddefd93c178109aebc55eda30728 /addons/web_editor/static/src
parent2198220947e4334aba85e782665870ff37ea7736 (diff)
[FIX] ir_http: use meaningful ETag for images (#20283)
After setting the image on a product variant, the controller for `/web/image` incorrectly returns the code 304 - Not Modified. This bug occurs because 1. the response ETag is a hash of the **last modified date** of the record; 2. the record is actually **not** updated in that case, because - the image field is a non-stored computed field, and - its inverse method only modifies the variant's template. Fix the issue by making the response ETag a hash of the **content**, which is read by the controller anyway. OPW 769302
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions