mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-11-02 02:48:05 +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") {
|
} else if strings.HasSuffix(r.URL.Path, ".svg") {
|
||||||
w.Header().Set("Content-Type", "image/svg+xml")
|
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.Header().Set("Cache-Control", "public, max-age=7776000")
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(200)
|
||||||
w.Write([]byte(data))
|
w.Write([]byte(data))
|
||||||
|
|||||||
Reference in New Issue
Block a user