mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-20 05:32:49 +03:00
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.
This commit is contained in:
@@ -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/ {
|
||||
|
||||
Reference in New Issue
Block a user