commit | 576cd9f63fe16215e0aad5afe645fccfaca420cf | [log] [tgz] |
---|---|---|
author | Sergey Kandaurov <pluknet@nginx.com> | Wed Sep 09 19:26:27 2020 +0300 |
committer | Sergey Kandaurov <pluknet@nginx.com> | Wed Sep 09 19:26:27 2020 +0300 |
tree | 5869427b638702bc2b96eb23e647719d699ef347 | |
parent | b0203ae3e49a50d31f7fa97829bac4acb71c2192 [diff] |
Cache: keep c->body_start when Vary changes (ticket #2029). If the variant hash doesn't match one we used as a secondary cache key, we switch back to the original key. In this case, c->body_start was kept updated from an existing cache node overwriting the new response value. After file cache update, it led to discrepancy between a cache node and cache file seen as critical errors "file cache .. has too long header".