summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-06-12 22:13:40 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-06-12 22:13:40 +0200
commit78cde36b78c65e6625537037826d31f2ab3a4b79 (patch)
tree6c4c6b58e85460f3840ae0c0632cf94b4bb89434
parent7da89a7273801685dbade6c0fd8b56fb80b8ab1f (diff)
Don’t cache redirects
-rw-r--r--server.go4
1 files 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
}