Skip to content

Middleware no cache

polarctos edited this page Aug 27, 2025 · 1 revision

S3Proxy can drop conditional request headers for GET requests with the NoCacheBlobStore middleware. This enforces that the full object is always returned instead of HTTP 304 responses.

To enable this, set the system property in the configuration:

s3proxy.no-cache-blobstore=true

Or for the docker container set the environment variable:

S3PROXY_NO_CACHE_BLOBSTORE=true

The following conditional HTTP headers are then dropped from GET requests:

  • If-None-Match
  • If-Match
  • If-Modified-Since
  • If-Unmodified-Since
Clone this wiki locally