icons
This commit is contained in:
+3
-4
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user