diff --git a/handler.go b/handler.go index 18a65d5..ae2422c 100644 --- a/handler.go +++ b/handler.go @@ -258,6 +258,7 @@ func (handler *Handler) headFile(w http.ResponseWriter, r *http.Request) { w.Header().Set("Upload-Metadata", serializeMeta(info.MetaData)) } + w.Header().Set("Cache-Control", "no-store") w.Header().Set("Upload-Length", strconv.FormatInt(info.Size, 10)) w.Header().Set("Upload-Offset", strconv.FormatInt(info.Offset, 10)) w.WriteHeader(http.StatusNoContent) diff --git a/head_test.go b/head_test.go index acf52d3..53cce69 100644 --- a/head_test.go +++ b/head_test.go @@ -43,6 +43,7 @@ func TestHead(t *testing.T) { "Upload-Offset": "11", "Upload-Length": "44", "Upload-Metadata": "name bHVucmpzLnBuZw==,type aW1hZ2UvcG5n", + "Cache-Control": "no-store", }, }).Run(handler, t)