Does Tigris support Response* headers in GetObjectCommand?

I was trying to manually set ResponseContentType and ResponseContentDisposition in the GetObjectCommand (using @aws-sdk/client-s3 and @aws-sdk/s3-request-presigner) but they seem to have been ignored — the content type and disposition used during the upload were returned instead.

Does Tigris have support for these?

From the AWS docs:

The response headers that you can override for the GetObject response are Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, and Expires.

To override values for a set of response headers in the GetObject response, you can use the following query parameters in the request.

  • response-cache-control
  • response-content-disposition
  • response-content-encoding
  • response-content-language
  • response-content-type
  • response-expires

Thank you for reporting it. We are not supporting overriding response headers yet but let us add the support for it. Would the end of next week work for you if we add the support by then?

3 Likes

Got it. Yeah, that’s totally fine!

My current workaround was to set the cache-control value in the Tigris dashboard and set Content-Disposition during the upload.

That’s great! We will let you once we release it.

Added tigris