From aba2e0c6215c78fb5e4c46eb81237cac103e23b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sat, 1 Aug 2026 23:52:08 +0200 Subject: [PATCH] icons --- src/app/pages.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/pages.rs b/src/app/pages.rs index ab5903e..f1ea51b 100644 --- a/src/app/pages.rs +++ b/src/app/pages.rs @@ -94,7 +94,7 @@ pub(super) async fn favicon_svg() -> Response { ), ( header::CACHE_CONTROL, - HeaderValue::from_static("public, max-age=604800"), + HeaderValue::from_static("public, max-age=604800, must-revalidate"), ), ], FAVICON, @@ -102,7 +102,6 @@ pub(super) async fn favicon_svg() -> Response { .into_response() } - pub(super) async fn favicon_png() -> Response { static FAVICON: &[u8] = include_bytes!("../../static/icons/favicon-32.png"); ( @@ -110,7 +109,7 @@ pub(super) async fn favicon_png() -> Response { (header::CONTENT_TYPE, HeaderValue::from_static("image/png")), ( header::CACHE_CONTROL, - HeaderValue::from_static("public, max-age=604800"), + HeaderValue::from_static("public, max-age=604800, must-revalidate"), ), ], FAVICON, @@ -125,7 +124,7 @@ pub(super) async fn apple_touch_icon() -> Response { (header::CONTENT_TYPE, HeaderValue::from_static("image/png")), ( header::CACHE_CONTROL, - HeaderValue::from_static("public, max-age=604800"), + HeaderValue::from_static("public, max-age=604800, must-revalidate"), ), ], ICON,