debian-mirror-gitlab/workhorse/internal/staticpages/static.go
2023-03-05 14:24:40 +05:30

14 lines
324 B
Go

package staticpages
import "net/http"
type Static struct {
DocumentRoot string
Exclude []string
}
func setNoCacheHeaders(header http.Header) {
header.Set("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate")
header.Set("Pragma", "no-cache")
header.Set("Expires", "Fri, 01 Jan 1990 00:00:00 GMT")
}