⚡ Add cache-control header on newly uploaded files
This commit is contained in:
@@ -40,6 +40,7 @@ export const uploadFiles = async ({
|
||||
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