From 17331d0c713f3f0114bc0433056609dfff6b53aa Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 19 Oct 2026 13:00:28 -0500 Subject: [PATCH] disable open_file_cache for review thumbnails Review thumbnails are rewritten in place while a review is active, and nginx's open_file_cache reused the stale file size for up to 2 minutes. A larger rewrite was served truncated with a 200, and a smaller one aborted the response mid-transfer, which broke notification images. The review thumbnail location now skips the cache. --- docker/main/rootfs/usr/local/nginx/conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index 690d08f6d0..96b2b3f085 100644 --- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf @@ -176,6 +176,12 @@ http { add_header Cache-Control "public"; autoindex on; root /media/frigate; + + # review thumbnails are rewritten in place while a review is active, + # so a cached file size truncates the response + location /clips/review/ { + open_file_cache off; + } } location /cache/ {