This commit is contained in:
+3
-1
@@ -302,8 +302,10 @@ func (this *Application) handler(w http.ResponseWriter, req *http.Request) {
|
||||
if value, ok := mimeMaps[mimeStr]; ok {
|
||||
header.Set("Content-Type", value)
|
||||
}
|
||||
if this.Config.GetInt("debug")!=1{
|
||||
header.Set("Cache-Control", "public")
|
||||
}
|
||||
|
||||
header.Set("Cache-Control", "public")
|
||||
//w.Write(data)
|
||||
http.ServeFile(w, req, path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user