From 06737ed6d71df7ee9f4e2b52a606557f411cfa6a Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 14 Sep 2024 23:07:38 +0200 Subject: [PATCH] stop caching fucking everything stupid bullshit http --- server/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main.rs b/server/src/main.rs index 55d9dab..50505d5 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -23,11 +23,13 @@ async fn next( return Response::PermanentRedirect() .header(header::LOCATION, next_url) + .header(header::CACHE_CONTROL, "no-store") .take(); } Response::TemporaryRedirect() .header(header::LOCATION, "https://nixwebr.ing/") + .header(header::CACHE_CONTROL, "no-store") .take() } @@ -43,11 +45,13 @@ async fn prev( return Response::PermanentRedirect() .header(header::LOCATION, prev_url) + .header(header::CACHE_CONTROL, "no-store") .take(); } Response::TemporaryRedirect() .header(header::LOCATION, "https://nixwebr.ing/") + .header(header::CACHE_CONTROL, "no-store") .take() }