12 lines
224 B
Go
12 lines
224 B
Go
|
package common
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func nocache(c *gin.Context) {
|
||
|
c.Header("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate")
|
||
|
c.Header("Pragma", "no-cache")
|
||
|
c.Header("Expires", "0")
|
||
|
}
|