From 87f172c79bc34b54df8919127862ef3250f29236 Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Thu, 20 Jul 2017 10:16:22 +1000 Subject: [PATCH] Bypass web caches for the NetworkManager connection tests Ensures users are testing their network instead of their cache/proxy. Reported-in: https://ctrl.blog/entry/network-connection-http-checks Suggested-in: <1500474664.14216.2.camel@daniel.priv.no> Signed-off-by: Paul Wise --- .../templates/static-mirroring/vhost/static-vhosts-simple.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb index 506f95a7a..c5dc09076 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -49,6 +49,9 @@ ServerAlias network-test-backend.debian.org + + Header set Cache-Control "must-revalidate, max-age=0" + -- 2.20.1