diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-09 12:29:41 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-09 12:29:41 +0100 |
commit | 4cfb0fc9c3caf555285452ac1d8f5c6751364d33 (patch) | |
tree | f7c585d4df5a9e76242acae4649c0b7e5ac99fda | |
parent | 6cdda4fac97792256d170f6396e333c43f7c9fd7 (diff) |
Force graph reloading ... sigh...
There really should be a way to make it obey cache-control instead of
this rubbish.
-rw-r--r-- | extras/misc/varnish.vcl | 2 | ||||
-rw-r--r-- | web/js/nms-info-box.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl index 02562ec..fe8e675 100644 --- a/extras/misc/varnish.vcl +++ b/extras/misc/varnish.vcl @@ -69,7 +69,7 @@ sub vcl_backend_response { if (bereq.url ~ "/render") { # Graphite claims "no-cache", which is dumb. # Let's blindly cache for 5+10s. Which is 10000 times better. - set beresp.http.Cache-Control = "max-age=5s"; + set beresp.http.Cache-Control = "max-age=5"; unset beresp.http.Pragma; set beresp.uncacheable = false; set beresp.grace = 10s; diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js index c2036cc..1aa54c3 100644 --- a/web/js/nms-info-box.js +++ b/web/js/nms-info-box.js @@ -1145,7 +1145,7 @@ nmsInfoBox._graphDefaults = function(title) { } else { title = "From " + nmsInfoBox._graphFrom + " until " + nmsInfoBox._graphUntil; } - var base = "&yMinLeft=0&yMinRight=0&yMin=0&bgcolor=%23ffffff00&fontName=courier&width=600&height=240&yUnitSystem=binary&format=svg&from=" + nmsInfoBox._graphFrom + "&until=" + nmsInfoBox._graphUntil + '&title=' + title; + var base = "&yMinLeft=0&yMinRight=0&yMin=0&bgcolor=%23ffffff00&fontName=courier&width=600&height=240&yUnitSystem=binary&format=svg&from=" + nmsInfoBox._graphFrom + "&until=" + nmsInfoBox._graphUntil + '&title=' + title + "&lolBuster=" + Math.floor(new Date().getTime() / 30000); if (nms.nightMode) { return "&fgcolor=%23dddddd&minorGridLineColor=%233d3d3d&majorGridLineColor=%23666666" + base; } else { |