MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / AddExpires

Function AddExpires

frontend/frontend.go:36–39  ·  view source on GitHub ↗
(ginCtx *gin.Context)

Source from the content-addressed store, hash-verified

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

Callers 1

IndexHtmlFunction · 0.85

Calls 1

HeaderMethod · 0.80

Tested by

no test coverage detected