From 71a6690aabb590b4ee1bb4b8c943036d85473f85 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 13 Sep 2024 20:21:00 +0200 Subject: [PATCH] don't cache random redirect --- server/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main.rs b/server/src/main.rs index 6f7da1c..892ab38 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -47,6 +47,7 @@ async fn rand() -> impl web::Responder { Response::PermanentRedirect() .header(header::LOCATION, rand_url) + .header(header::CACHE_CONTROL, "no-store") .take() }