diff --git a/py/routes/handlers/preview_handlers.py b/py/routes/handlers/preview_handlers.py index 3fb07808..1ddf43a7 100644 --- a/py/routes/handlers/preview_handlers.py +++ b/py/routes/handlers/preview_handlers.py @@ -60,7 +60,14 @@ class PreviewHandler: # uses IOCP-based _sendfile_native which can crash when the client # disconnects mid-transfer during fast scrolling. The _stream_file() # fallback is kept for a future compat toggle. - return web.FileResponse(path=resolved, chunk_size=_CHUNK_SIZE) + # + # Set explicit Cache-Control so the browser can cache video (and image) + # previews across VirtualScroller recycling cycles. Without this, + # Chrome does not cache 206 Partial Content responses for