diff --git a/src/backend/assets.rs b/src/backend/assets.rs index 6171878..437c428 100644 --- a/src/backend/assets.rs +++ b/src/backend/assets.rs @@ -40,6 +40,10 @@ pub async fn file_and_error_handler( .unwrap_or_else(|| APPLICATION_OCTET_STREAM.essence_str()), )?, ); + headers.insert( + HeaderName::from_static("cache-control"), + HeaderValue::from_static("max-age=3600, public"), + ); Ok((headers, content.contents()).into_response()) } }