johannesboyne / gofakes3

A simple fake AWS S3 object storage (used for local test-runs against AWS S3 APIs)
MIT License
358 stars 81 forks source link

Add If-Modified-Since support #80

Closed DarthSim closed 1 year ago

DarthSim commented 1 year ago

The S3 API allows conditional caching by sending an If-Modified-Since header when retrieving an object (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html#API_GetObject_RequestSyntax). If the timestamp provided in the If-Modified-Since header is not before the object modification timestamp, S3 API should respond with 304 Now Modified. This PR implements this behavior.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication