-
Committer:
mergebot at canonical
-
Author(s):
"Haw Loeung"
-
Date:
2021-03-10 01:03:13 UTC
-
mfrom:
(329.1.2 ubuntu-repository-cache)
-
Revision ID:
mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20210310010313-euenq8x52usclmim
Add 'Accept-Encoding' in nrpe and health checks
Upstream archives use mod_deflate which sets 'Vary: Accept-Encoding' on responses, so check_http should set that header.
This also reduces the logging spam from squid:
| 2021/03/10 00:15:00 kid1| varyEvaluateMatch: Oops. Not a Vary match on second attempt, 'http://archive.ubuntu.com/ubuntu/pool/' 'accept-encoding="*"'
| 2021/03/10 00:15:00 kid1| clientProcessHit: Vary object loop!
We also hope to reduce squid memory usage (mem_node) as discovered by
tcuthbert.
Reviewed-on: https://code.launchpad.net/~hloeung/ubuntu-repository-cache/add-accept-encoding-headers/+merge/399399
Reviewed-by: Thomas Cuthbert <thomas.cuthbert@canonical.com>