(ginCtx *gin.Context)
| 34 | ) |
| 35 | |
| 36 | func AddExpires(ginCtx *gin.Context) { |
| 37 | ginCtx.Header("Expires", time.Now().Add(expires).UTC().Format(http.TimeFormat)) |
| 38 | ginCtx.Header("Cache-Control", cacheControl) |
| 39 | } |
| 40 | |
| 41 | func init() { |
| 42 | iconType = mimetype.Detect(iconContent).String() |