From e43ed325bc5d355caae0c8e0c38326e375f45293 Mon Sep 17 00:00:00 2001 From: qclaogui Date: Mon, 13 Nov 2017 04:01:11 -0600 Subject: [PATCH] 307 is better than 301 The browser will cache 301 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d3b9194..a8850072 100644 --- a/README.md +++ b/README.md @@ -984,7 +984,7 @@ Issuing a HTTP redirect is easy: ```go r.GET("/test", func(c *gin.Context) { - c.Redirect(http.StatusMovedPermanently, "http://www.google.com/") + c.Redirect(http.StatusTemporaryRedirect, "http://www.google.com/") }) ``` Both internal and external locations are supported.