~tcuthbert/ubuntu-repository-cache/squid-mem-max

« back to all changes in this revision

Viewing changes to templates/apache2/archive_ubuntu_com.conf

  • Committer: mergebot at canonical
  • Author(s): "Haw Loeung"
  • Date: 2021-08-12 21:51:39 UTC
  • mfrom: (330.3.1 ubuntu-repository-cache-charm)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20210812215139-39qrgzzilz9a14bf
Ensure Accept-Encoding header always exists for requests via the squid proxy

Reviewed-on: https://code.launchpad.net/~hloeung/ubuntu-repository-cache/add-accept-encoding-headers-2/+merge/399400
Reviewed-by: Tom Haddon <tom.haddon@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        ProxyPass         /{{ Path_Base }}/pool http://{{ Sync_Host }}/{{ Path_Base }}/pool
54
54
        ProxyPassReverse  /{{ Path_Base }}/pool http://{{ Sync_Host }}/{{ Path_Base }}/pool
55
55
 
 
56
        # Ensure Accept-Encoding header always exists for requests via
 
57
        # the squid proxy.
 
58
        RequestHeader set Accept-Encoding *
 
59
 
56
60
        # Optional: During recovery, metadata requests will forward to
57
61
        # the next unit in the pool
58
62
        {{ MetadataProxy }}