[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] apache: re-add Content-Encoding=gzip to .gz files
Mattia Rizzolo
gitlab at salsa.debian.org
Tue May 29 14:22:43 BST 2018
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
8319ffca by Mattia Rizzolo at 2018-05-29T15:20:03+02:00
apache: re-add Content-Encoding=gzip to .gz files
this will make them displayed in browsers, etc
Also, drop the auto-inflate thing, that causes apt and clients that
actually expects compressed content to blow up (and we really shouldn't
decompress silently anyway: if we say we are encoding in gzip we should
serve stuff encoded with gz.
AddEncoding seems to do something more than just add the
Content-Encoding header, as client not specifing Accept-Encoding=gzip
would fail with 406. Let's just add the single header manually for now.
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
Changes:
=====================================
hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
=====================================
--- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
+++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net.conf
@@ -41,13 +41,12 @@
Require all granted
</Directory>
- #<FilesMatch "(?!Packages.gz)\.gz$">
- # AddEncoding gzip .gz
- # ForceType text/plain
- # FilterDeclare gzipInflate CONTENT_SET
- # FilterProvider gzipInflate inflate "%{req:Accept-Encoding} !~ /gzip/"
- # FilterChain +gzipInflate
- #</FilesMatch>
+ <FilesMatch "\.gz$">
+ Header append Content-Encoding gzip
+ # this causes errors 406 to client connecting without Accept-Encoding=gzip.
+ #AddEncoding gzip .gz
+ ForceType text/plain
+ </FilesMatch>
RewriteEngine on
ProxyRequests Off
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/8319ffcadcc17084fda7a6318f9f92a3c53414da
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/8319ffcadcc17084fda7a6318f9f92a3c53414da
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180529/6d7d93ff/attachment.html>
More information about the Qa-jenkins-scm
mailing list