don't cache random redirect

This commit is contained in:
jacekpoz 2024-09-13 20:21:00 +02:00
parent 495b4ef527
commit 71a6690aab
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -47,6 +47,7 @@ async fn rand() -> impl web::Responder {
Response::PermanentRedirect()
.header(header::LOCATION, rand_url)
.header(header::CACHE_CONTROL, "no-store")
.take()
}