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 <jcristau@debian.org>
Options +Indexes
Options +FollowSymLinks
</Directory>
+ <Directory /srv/mirrors/debian-debug/pool>
+ <Files ?*>
+ Header set Cache-Control "public, max-age=2592000"
+ </Files>
+ </Directory>
+ <Directory /srv/mirrors/debian-debug/dists>
+ <Files ?*>
+ Header set Cache-Control "public, max-age=120"
+ </Files>
+ </Directory>
+ <DirectoryMatch "^/srv/mirrors/debian-debug/dists/.*/by-hash">
+ <Files ?*>
+ Header set Cache-Control "public, max-age=2592000"
+ </Files>
+ </DirectoryMatch>
+
</VirtualHost>
Options +Indexes
Options +FollowSymLinks
</Directory>
+ <Directory /srv/mirrors/debian-ports/pool>
+ <Files ?*>
+ Header set Cache-Control "public, max-age=2592000"
+ </Files>
+ </Directory>
+ <Directory /srv/mirrors/debian-ports/dists>
+ <Files ?*>
+ Header set Cache-Control "public, max-age=120"
+ </Files>
+ </Directory>
+ <DirectoryMatch "^/srv/mirrors/debian-ports/dists/.*/by-hash">
+ <Files ?*>
+ Header set Cache-Control "public, max-age=2592000"
+ </Files>
+ </DirectoryMatch>
Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
<Directory /srv/mirrors/debian-ports-cd>