Files
gitlabhq/workhorse/internal/staticpages/static.go
2024-05-03 06:12:12 +00:00

16 lines
401 B
Go

package staticpages
import "net/http"
// Static represents a package for serving static pages and handling errors.
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")
}