Skip to content

NVR with realtime local object detection for IP cameras

Use cache key for mask/zone editor image (#12232)

Josh Hawkinsb30fecbd283c
diff --git a/web/src/components/settings/PolygonCanvas.tsx b/web/src/components/settings/PolygonCanvas.tsx
index 9ac4bad70a..63ce9fa150 100644
--- a/web/src/components/settings/PolygonCanvas.tsx
+++ b/web/src/components/settings/PolygonCanvas.tsx
@@ -39,7 +39,7 @@ export function PolygonCanvas({
const element = new window.Image();
element.width = width;
element.height = height;
- element.src = `${apiHost}api/${camera}/latest.webp`;
+ element.src = `${apiHost}api/${camera}/latest.webp?cache=${Date.now()}`;
return element;
}
}, [camera, width, height, apiHost]);