NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix bug where safari and firefox cache image for too long (#17148)
Nicolas Mowen2313b8ea0588
diff --git a/web/src/components/camera/AutoUpdatingCameraImage.tsx b/web/src/components/camera/AutoUpdatingCameraImage.tsxindex d97a9214a3..95d90d9bda 100644--- a/web/src/components/camera/AutoUpdatingCameraImage.tsx+++ b/web/src/components/camera/AutoUpdatingCameraImage.tsx@@ -78,7 +78,10 @@ export default function AutoUpdatingCameraImage({let baseParam = "";if (periodicCache && !isCached) {- baseParam = "store=1";+ const date = new Date(key);+ date.setMinutes(date.getMinutes() - (date.getMinutes() % 10), 0, 0);++ baseParam = `store=1&cache=${date.getTime() / 1000}`;} else {baseParam = `cache=${key}`;}