From 4fc14bac881aec79c74fb4cf743d9a85cf681c4a Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 27 Jul 2016 18:39:48 +0200 Subject: [PATCH] Set Cache-Control header for debian-debug and debian-ports archives Set max-age to 2 minutes for dists, 30 days for by-hash and pool, to match ftp.debian.org. Signed-off-by: Julien Cristau --- .../apache-debug.mirrors.debian.org.erb | 16 ++++++++++++++++ .../templates/apache-ftp.ports.debian.org.erb | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/modules/roles/templates/apache-debug.mirrors.debian.org.erb b/modules/roles/templates/apache-debug.mirrors.debian.org.erb index f20d4b609..7a5a5923a 100644 --- a/modules/roles/templates/apache-debug.mirrors.debian.org.erb +++ b/modules/roles/templates/apache-debug.mirrors.debian.org.erb @@ -20,6 +20,22 @@ Options +Indexes Options +FollowSymLinks + + + Header set Cache-Control "public, max-age=2592000" + + + + + Header set Cache-Control "public, max-age=120" + + + + + Header set Cache-Control "public, max-age=2592000" + + + diff --git a/modules/roles/templates/apache-ftp.ports.debian.org.erb b/modules/roles/templates/apache-ftp.ports.debian.org.erb index 285d00872..c9c88af89 100644 --- a/modules/roles/templates/apache-ftp.ports.debian.org.erb +++ b/modules/roles/templates/apache-ftp.ports.debian.org.erb @@ -21,6 +21,21 @@ Options +Indexes Options +FollowSymLinks + + + Header set Cache-Control "public, max-age=2592000" + + + + + Header set Cache-Control "public, max-age=120" + + + + + Header set Cache-Control "public, max-age=2592000" + + Alias /debian-ports-cd /srv/mirrors/debian-ports-cd -- 2.20.1