- object write cache control

- object write expires
This commit is contained in:
Konstantin Lebedev
2021-05-24 15:43:55 +05:00
parent 15859a7daa
commit 69c768870b
5 changed files with 23 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa
SaveAmzMetaData(r, entry.Extended, false)
for k, v := range r.Header {
if len(v) > 0 && strings.HasPrefix(k, needle.PairNamePrefix) {
if len(v) > 0 && (strings.HasPrefix(k, needle.PairNamePrefix) || k == "Cache-Control" || k == "Expires") {
entry.Extended[k] = []byte(v[0])
}
}