Initial commit

This commit is contained in:
JustSong authored and GitHub committed 2023-04-22 20:39:27 +08:00
commit 4cbef0780e
87 files changed
+6933

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package middleware
import (
"github.com/gin-gonic/gin"
)
func Cache() func(c *gin.Context) {
return func(c *gin.Context) {
c.Header("Cache-Control", "max-age=604800") // one week
c.Next()
}
}