summaryrefslogtreecommitdiffstats
path: root/src/routes/static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/static.rs')
-rw-r--r--src/routes/static.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/routes/static.rs b/src/routes/static.rs
index d319efe..766a094 100644
--- a/src/routes/static.rs
+++ b/src/routes/static.rs
@@ -27,6 +27,10 @@ async fn handler_static_get(
hyper::header::CONTENT_TYPE,
hyper::header::HeaderValue::from_static("image/svg+xml"),
);
+ resp.headers_mut().insert(
+ hyper::header::CACHE_CONTROL,
+ hyper::header::HeaderValue::from_static("max-age=31536000, immutable"),
+ );
Ok(resp)
} else {