From 8dff13fb753efb905de4e77fbbc6c4353e80dc62 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sun, 29 May 2016 02:29:09 +0200 Subject: front: Greatly improve health map and more As a result of testing with TG16-data, I was able to find and fix a few outstanding issues and tune the health map to make more sense. Also introduced both temperature and dhcp into the health map and info box. Removed the switchInfo text on the health map unless the score is above a threshold. Still more tuning needed. After introducing dhcpInfo it's become even more important to address #88 --- extras/misc/varnish.vcl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extras/misc/varnish.vcl') diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl index addef0d..492f001 100644 --- a/extras/misc/varnish.vcl +++ b/extras/misc/varnish.vcl @@ -52,4 +52,8 @@ sub vcl_backend_response { set beresp.uncacheable = false; set beresp.ttl = 5s; } + if (bereq.url ~ "\.(html|css|js)") { + # Mainly for ease of development + set beresp.ttl = 10s; + } } -- cgit v1.2.3