From 4c77eab84b46ea3410f289c62d9f17dbc60316a6 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 1 Mar 2026 14:38:54 -0500 Subject: [PATCH] Fix image serving: use cache_timeout not max_age (Quart API) Quart's send_file uses cache_timeout= not max_age=. The TypeError on every /api/images/ request caused a 500, which the browser rendered as alt text. Co-Authored-By: Claude Sonnet 4.6 --- src/fabledassistant/routes/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fabledassistant/routes/images.py b/src/fabledassistant/routes/images.py index 69cdae1..a4aec81 100644 --- a/src/fabledassistant/routes/images.py +++ b/src/fabledassistant/routes/images.py @@ -31,5 +31,5 @@ async def serve_image(image_id: int): return await send_file( file_path, mimetype=record.content_type, - max_age=86400, + cache_timeout=86400, )