⚡ Add cache-control header on newly uploaded files
This commit is contained in:
@ -31,6 +31,7 @@ export const UploadButton = ({
|
||||
Object.entries(data.formData).forEach(([key, value]) => {
|
||||
formData.append(key, value)
|
||||
})
|
||||
formData.append('Cache-Control', 'max-age=86400')
|
||||
formData.append('file', file)
|
||||
const upload = await fetch(data.presignedUrl, {
|
||||
method: 'POST',
|
||||
|
Reference in New Issue
Block a user