mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-01 10:27:56 +00:00
Add comments
This commit is contained in:
@@ -282,6 +282,7 @@ func (e mainEnv) setupRouter() *httprouter.Router {
|
||||
} else if strings.HasSuffix(r.URL.Path, ".svg") {
|
||||
w.Header().Set("Content-Type", "image/svg+xml")
|
||||
}
|
||||
// next step: https://www.sanarias.com/blog/115LearningHTTPcachinginGo
|
||||
w.Header().Set("Cache-Control", "public, max-age=7776000")
|
||||
w.WriteHeader(200)
|
||||
w.Write([]byte(data))
|
||||
|
||||
Reference in New Issue
Block a user