From 88520502eaedddb08e06bf4ed62e5126c3dc0caa Mon Sep 17 00:00:00 2001 From: blek Date: Tue, 10 Oct 2023 01:14:11 +1000 Subject: [PATCH] hardcode date in hope that the requests would be cached --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 159a1db..b9d93fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,6 +33,7 @@ async fn main() { let mut res = Response::new(out.into()); res.headers_mut().insert("Content-Type", warp::http::HeaderValue::from_static("image/png")); + res.headers_mut().insert("Date", warp::http::HeaderValue::from_static("Thu, 01 Jan 1970 00:00:00 GMT")); res }) );