()
| 3 | import "github.com/gin-gonic/gin" |
| 4 | |
| 5 | func DisableCache() gin.HandlerFunc { |
| 6 | return func(c *gin.Context) { |
| 7 | c.Header("Cache-Control", "no-store, no-cache, must-revalidate, private, max-age=0") |
| 8 | c.Header("Pragma", "no-cache") |
| 9 | c.Header("Expires", "0") |
| 10 | c.Next() |
| 11 | } |
| 12 | } |