From eab1c9bc73c054806ab9366f7b26af54cee9b524 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 31 May 2024 01:24:33 -0500 Subject: [PATCH] new: Added cache-control header, fixes #22 --- actix/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/actix/src/main.rs b/actix/src/main.rs index b175ae2..f6413c2 100644 --- a/actix/src/main.rs +++ b/actix/src/main.rs @@ -49,6 +49,7 @@ async fn main() -> Result<()> { .app_data(web::Data::new(AppState { db: database::open_db(db_location.clone()), })) + .wrap(middleware::DefaultHeaders::new().add(("Cache-Control", "no-cache, private"))) .service(services::link_handler) .service(services::getall) .service(services::siteurl)