Bypass web caches for the NetworkManager connection tests
authorDaniel Aleksandersen <code@daniel.priv.no>
Thu, 20 Jul 2017 00:16:22 +0000 (10:16 +1000)
committerPaul Wise <pabs@debian.org>
Thu, 20 Jul 2017 00:16:22 +0000 (10:16 +1000)
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 <pabs@debian.org>
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index 506f95a..c5dc090 100644 (file)
@@ -49,6 +49,9 @@
 
 <Macro vstatic-vhost-extra-network-test.debian.org>
        ServerAlias network-test-backend.debian.org
+       <Location /nm>
+               Header set Cache-Control "must-revalidate, max-age=0"
+       </Location>
 </Macro>
 
 <Macro vstatic-vhost-extra-bits.debian.org>