+
+ | Server status |
+
...
|
@@ -164,7 +166,8 @@ function get_appropriate_ws_url()
try {
socket_status.onopen = function() {
- }
+ document.getElementById("title").innerHTML = "Server Status (Active)";
+ }
socket_status.onmessage =function got_packet(msg) {
document.getElementById("conninfo").innerHTML = ""+msg.data+" ";
@@ -210,14 +213,24 @@ function get_appropriate_ws_url()
"total http transactions " + san(jso.vhosts[n].trans) + " " +
"Upgrades to ws: " + san(jso.vhosts[n].ws_upg) + ", " +
"to http/2: " + san(jso.vhosts[n].http2_upg) + " " +
- "Mounts | ";
+ "Mountpoint | Origin | Cache Policy | ";
var m;
for (m = 0; m < jso.vhosts[n].mounts.length; m++) {
s = s + "";
s = s + san(jso.vhosts[n].mounts[m].mountpoint) +
" | " +
- san(jso.vhosts[n].mounts[m].origin);
+ san(jso.vhosts[n].mounts[m].origin) +
+ " | ";
+ if (parseInt(san(jso.vhosts[n].mounts[m].cache_max_age)))
+ s = s + "max-age: " +
+ san(jso.vhosts[n].mounts[m].cache_max_age) +
+ ", reuse: " +
+ san(jso.vhosts[n].mounts[m].cache_reuse) +
+ ", reval: " +
+ san(jso.vhosts[n].mounts[m].cache_revalidate) +
+ ", inter: " +
+ san(jso.vhosts[n].mounts[m].cache_intermediaries);
s = s + " | "
}
s = s + " ";
@@ -229,8 +242,7 @@ function get_appropriate_ws_url()
}
socket_status.onclose = function(){
- document.getElementById("s_statustd").style.backgroundColor = "#ff4040";
- document.getElementById("s_status").textContent = " websocket connection CLOSED ";
+ document.getElementById("title").innerHTML = "Server Status (Disconnected)";
}
} catch(exception) {
alert('Error' + exception);
|