diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js
index 85f4b63f..77df384a 100644
--- a/scripts/pi-hole/js/queries.js
+++ b/scripts/pi-hole/js/queries.js
@@ -95,7 +95,7 @@ function parseQueryStatus(data) {
break;
case "FORWARDED":
colorClass = "text-green";
- icon = "fa-solid fa-upload";
+ icon = "fa-solid fa-cloud-download-alt";
fieldtext = "Forwarded to " + data.upstream;
buttontext =
'';
@@ -103,7 +103,7 @@ function parseQueryStatus(data) {
case "CACHE":
colorClass = "text-green";
icon = "fa-regular fa-database";
- fieldtext = "Cached";
+ fieldtext = "Served from cache";
buttontext =
'';
break;
@@ -180,12 +180,19 @@ function parseQueryStatus(data) {
case "IN_PROGRESS":
colorClass = "text-green";
icon = "fa-solid fa-redo";
- fieldtext = "OK
(already forwarded)";
+ fieldtext = "Already forwarded";
+ buttontext =
+ '';
+ break;
+ case "CACHE_STALE":
+ colorClass = "text-green";
+ icon = "fa-solid fa-infinity";
+ fieldtext = "Served by cache optimizer";
buttontext =
'';
break;
default:
- colorClass = false;
+ colorClass = "text-orange";
icon = "fa-solid fa-question";
fieldtext = data.status;
buttontext = "";
@@ -515,9 +522,18 @@ $(function () {
rowCallback: function (row, data) {
var querystatus = parseQueryStatus(data);
+ // Remove HTML from querystatus.fieldtext
+ var rawtext = $("