mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-22 12:22:23 +02:00
fix: pass cache control from request to created blob (#9430)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -272,6 +272,9 @@ export async function handleUploadFormData (
|
||||
const metadata = await datalake.put(ctx, workspace, name, sha256, data, {
|
||||
size,
|
||||
contentType,
|
||||
cacheControl: Array.isArray(req.headers['cache-control'])
|
||||
? req.headers['cache-control'].join(', ')
|
||||
: req.headers['cache-control'],
|
||||
lastModified: Date.now()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user