set expires: headers on alioth-archive
authorPeter Palfrader <peter@palfrader.org>
Thu, 31 May 2018 19:20:44 +0000 (21:20 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 31 May 2018 19:21:00 +0000 (21:21 +0200)
modules/roles/manifests/alioth_archive.pp
modules/roles/templates/apache-alioth-archive.debian.org.erb

index 9188789..cafe458 100644 (file)
@@ -1,5 +1,6 @@
 class roles::alioth_archive {
        include apache2
+       include apache2::expires
        include apache2::rewrite
        include apache2::ssl
 
index 099c9ef..8a8f2e3 100644 (file)
 
        RewriteEngine On
 
+       ExpiresActive On
+       ExpiresDefault "access plus 2 hours"
+       ExpiresByType application/x-xz "access plus 1 week"
+
        <IfModule mod_userdir.c>
                UserDir disabled
        </IfModule>