mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-08 16:31:20 +02:00
13 lines
303 B
Go
13 lines
303 B
Go
package middleware
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
// NoStore keeps responses out of the browser disk cache. A handler may set
|
|
// its own Cache-Control afterwards to override it.
|
|
func NoStore() gin.HandlerFunc {
|
|
return func(c *gin.Context) {
|
|
c.Header("Cache-Control", "no-store")
|
|
c.Next()
|
|
}
|
|
}
|