From 78cde36b78c65e6625537037826d31f2ab3a4b79 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 12 Jun 2023 22:13:40 +0200 Subject: Don’t cache redirects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 9ab243f..10cb474 100644 --- a/server.go +++ b/server.go @@ -44,7 +44,7 @@ func router(w http.ResponseWriter, r *http.Request) { Name: "redirect", Path: "/", }) - http.Redirect(w, r, url + lang + "/", http.StatusMovedPermanently) + http.Redirect(w, r, url + lang + "/", http.StatusTemporaryRedirect) return } @@ -60,7 +60,7 @@ func router(w http.ResponseWriter, r *http.Request) { Name: "redirect", Path: "/", }) - http.Redirect(w, r, url + path, http.StatusMovedPermanently) + http.Redirect(w, r, url + path, http.StatusTemporaryRedirect) return } -- cgit v1.2.3