|
@@ -28,7 +28,8 @@ func ServeData(ctx *context.Context, name string, reader io.Reader) error { |
|
|
buf = buf[:n] |
|
|
buf = buf[:n] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ctx.Resp.Header().Set("Cache-Control", "public,max-age=86400") |
|
|
|
|
|
|
|
|
//ctx.Resp.Header().Set("Cache-Control", "public,max-age=86400") |
|
|
|
|
|
ctx.Resp.Header().Set("Cache-Control", "max-age=0") |
|
|
name = path.Base(name) |
|
|
name = path.Base(name) |
|
|
|
|
|
|
|
|
// Google Chrome dislike commas in filenames, so let's change it to a space |
|
|
// Google Chrome dislike commas in filenames, so let's change it to a space |
|
|