Is there any way to set Cache-Control headers on individual uploads with tusd? This can be accomplished with tus-node-server by setting a “cacheControl” metadata field on the upload, but that doesn’t seem to work with tusd. I can modify the upload metadata in a pre-create hook but no matter what I put in there the Cache-Control header of the item in my S3-compatible storage (R2) doesn’t change.
Looks like this is not possible yet: s3store: Cannot set Content-Disposition · Issue #978 · tus/tusd · GitHub
This is not yet possible in tusd but we are working on it in s3store: Allow customizing upload ID, object ID and bucket by Acconut · Pull Request #1167 · tus/tusd · GitHub.
1 Like