distgit: disable mod_deflate for lookaside cache in staging

Fixes #12812.

This disables mod_deflate for the lookaside cache directory to prevent
incorrect 'Content-Encoding: gzip' headers being sent with archives.
Wrapped in a staging block for initial testing as requested.

Signed-off-by: Victor Koycheff <victorkoycheff@gmail.com>
This commit is contained in:
Victor Koychev 2026-02-25 09:53:27 +02:00
commit 1fa76e4de0
Signed by: victorkoycheff
GPG key ID: BC1ECBDF6D46BCB5

View file

@ -3,5 +3,11 @@ Alias /lookaside /srv/cache/lookaside
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
{% if env == 'staging' %}
# Disable global mod_deflate for lookaside cache
# to prevent double-compression and false gzip headers
SetEnv no-gzip 1
SetEnv dont-vary 1
{% endif %}
</Directory>