From 5d510cbf1554c71979185f9ce91f432d2036f95f Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 11 Nov 2021 21:06:08 +0100 Subject: [PATCH] Fix caching key for thumbnails Signed-off-by: trivernis --- mediarepo-api/src/tauri_plugin/custom_schemes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediarepo-api/src/tauri_plugin/custom_schemes.rs b/mediarepo-api/src/tauri_plugin/custom_schemes.rs index d61eaae..c2913fe 100644 --- a/mediarepo-api/src/tauri_plugin/custom_schemes.rs +++ b/mediarepo-api/src/tauri_plugin/custom_schemes.rs @@ -85,7 +85,7 @@ fn thumb_scheme(app: &AppHandle, request: &Request) -> Result().ok()) .unwrap_or(250); - if let Some(buffer) = buf_state.get_entry(hash) { + if let Some(buffer) = buf_state.get_entry(request.uri()) { ResponseBuilder::new() .status(200) .mimetype(&buffer.mime) @@ -98,7 +98,7 @@ fn thumb_scheme(app: &AppHandle, request: &Request) -> Result