diff options
Diffstat (limited to 'workhorse/internal/staticpages/static.go')
-rw-r--r-- | workhorse/internal/staticpages/static.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/workhorse/internal/staticpages/static.go b/workhorse/internal/staticpages/static.go index 5b804e4d644..c5c0573090b 100644 --- a/workhorse/internal/staticpages/static.go +++ b/workhorse/internal/staticpages/static.go @@ -1,6 +1,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") +} |