blob: c5c0573090b4bec6f423f027a5ccb0a7ee3283b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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")
}
|