stop caching fucking everything

stupid bullshit http
This commit is contained in:
jacekpoz 2024-09-14 23:07:38 +02:00
parent 538deaa940
commit 06737ed6d7
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -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()
}