diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-06-12 22:13:40 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-06-12 22:13:40 +0200 |
commit | 78cde36b78c65e6625537037826d31f2ab3a4b79 (patch) | |
tree | 6c4c6b58e85460f3840ae0c0632cf94b4bb89434 | |
parent | 7da89a7273801685dbade6c0fd8b56fb80b8ab1f (diff) |
Don’t cache redirects
-rw-r--r-- | server.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |