This commit is contained in:
Mateusz Gruszczyński
2026-08-01 23:52:08 +02:00
parent aaa7b1aaa5
commit aba2e0c621
+3 -4
View File
@@ -94,7 +94,7 @@ pub(super) async fn favicon_svg() -> Response {
), ),
( (
header::CACHE_CONTROL, header::CACHE_CONTROL,
HeaderValue::from_static("public, max-age=604800"), HeaderValue::from_static("public, max-age=604800, must-revalidate"),
), ),
], ],
FAVICON, FAVICON,
@@ -102,7 +102,6 @@ pub(super) async fn favicon_svg() -> Response {
.into_response() .into_response()
} }
pub(super) async fn favicon_png() -> Response { pub(super) async fn favicon_png() -> Response {
static FAVICON: &[u8] = include_bytes!("../../static/icons/favicon-32.png"); 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::CONTENT_TYPE, HeaderValue::from_static("image/png")),
( (
header::CACHE_CONTROL, header::CACHE_CONTROL,
HeaderValue::from_static("public, max-age=604800"), HeaderValue::from_static("public, max-age=604800, must-revalidate"),
), ),
], ],
FAVICON, FAVICON,
@@ -125,7 +124,7 @@ pub(super) async fn apple_touch_icon() -> Response {
(header::CONTENT_TYPE, HeaderValue::from_static("image/png")), (header::CONTENT_TYPE, HeaderValue::from_static("image/png")),
( (
header::CACHE_CONTROL, header::CACHE_CONTROL,
HeaderValue::from_static("public, max-age=604800"), HeaderValue::from_static("public, max-age=604800, must-revalidate"),
), ),
], ],
ICON, ICON,