[#538] Return headers with 304 Not Modified #547

Merged
alexvanin merged 1 commit from mbiryukova/frostfs-s3-gw:bugfix/not_modified into master 2024-11-13 13:49:10 +00:00
Member

Closes #538

Signed-off-by: Marina Biryukova m.biryukova@yadro.com

Closes #538 Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova self-assigned this 2024-11-11 13:42:15 +00:00
mbiryukova added 1 commit 2024-11-11 13:42:16 +00:00
[#538] Return headers with 304 Not Modified
All checks were successful
/ DCO (pull_request) Successful in 1m25s
/ Vulncheck (pull_request) Successful in 1m32s
/ Builds (pull_request) Successful in 1m49s
/ Lint (pull_request) Successful in 2m57s
/ Tests (pull_request) Successful in 1m53s
e1054917ec
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova requested review from storage-services-committers 2024-11-11 13:45:51 +00:00
mbiryukova requested review from storage-services-developers 2024-11-11 13:45:52 +00:00
dkirillov reviewed 2024-11-12 06:47:13 +00:00
@ -81,0 +81,4 @@
func writeNotModifiedHeaders(h http.Header, extendedInfo *data.ExtendedObjectInfo, tagSetLength int, isBucketUnversioned, md5Enabled bool) {
h.Set(api.ETag, data.Quote(extendedInfo.ObjectInfo.ETag(md5Enabled)))
h.Set(api.LastModified, extendedInfo.ObjectInfo.Created.UTC().Format(http.TimeFormat))
h.Set(api.AmzTaggingCount, strconv.Itoa(tagSetLength))
Member

Why do we need other headers except ETag and Last-Modified?

Why do we need other headers except `ETag` and `Last-Modified`?
Author
Member

I checked what aws returns in such cases

I checked what aws returns in such cases
dkirillov marked this conversation as resolved
alexvanin approved these changes 2024-11-12 12:57:36 +00:00
dkirillov approved these changes 2024-11-13 11:30:23 +00:00
alexvanin merged commit eff0de43d5 into master 2024-11-13 13:49:10 +00:00
alexvanin deleted branch bugfix/not_modified 2024-11-13 13:49:22 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#547
No description provided.