SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer: return 304 when If-Modified-Since == Last-Modified
Merlin Gaillardf952f979d1cc
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex f90b070a29..cdfdf9b493 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -79,7 +79,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,w.Header().Set("Last-Modified", entry.Attr.Mtime.UTC().Format(http.TimeFormat))if r.Header.Get("If-Modified-Since") != "" {if t, parseError := time.Parse(http.TimeFormat, r.Header.Get("If-Modified-Since")); parseError == nil {- if t.After(entry.Attr.Mtime) {+ if t.After(entry.Attr.Mtime) || t.Equal(entry.Attr.Mtime) {w.WriteHeader(http.StatusNotModified)return}