aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/misc/varnish.vcl2
-rw-r--r--web/js/nms-info-box.js2
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 {