Merge lp:~hloeung/ubuntu-repository-cache/add-accept-encoding-headers-2 into lp:ubuntu-repository-cache

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: 331
Merged at revision: 341
Proposed branch: lp:~hloeung/ubuntu-repository-cache/add-accept-encoding-headers-2
Merge into: lp:ubuntu-repository-cache
Diff against target: 21 lines (+5/-1)
1 file modified
templates/apache2/archive_ubuntu_com.conf (+5/-1)
To merge this branch: bzr merge lp:~hloeung/ubuntu-repository-cache/add-accept-encoding-headers-2
Reviewer Review Type Date Requested Status
Tom Haddon Approve
Canonical IS Reviewers Pending
Review via email: mp+399400@code.launchpad.net

Commit message

Ensure Accept-Encoding header always exists for requests via the squid proxy

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Tom Haddon (mthaddon) wrote :

LGTM

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 341

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/apache2/archive_ubuntu_com.conf'
2--- templates/apache2/archive_ubuntu_com.conf 2021-03-07 23:23:47 +0000
3+++ templates/apache2/archive_ubuntu_com.conf 2021-03-10 01:38:09 +0000
4@@ -1,5 +1,5 @@
5 #
6-# JUJU WARNING: This file is managed by Juju, do NOT edit
7+# JUJU WARNING: This file is managed by Juju, do NOT edit
8 #
9
10 <VirtualHost *:80>
11@@ -52,6 +52,10 @@
12 ProxyPass /{{ Path_Base }}/pool http://{{ Sync_Host }}/{{ Path_Base }}/pool
13 ProxyPassReverse /{{ Path_Base }}/pool http://{{ Sync_Host }}/{{ Path_Base }}/pool
14
15+ # Ensure Accept-Encoding header always exists for requests via
16+ # the squid proxy.
17+ RequestHeader set Accept-Encoding *
18+
19 # Optional: During recovery, metadata requests will forward to
20 # the next unit in the pool
21 {{ MetadataProxy }}

Subscribers

People subscribed via source and target branches