set cache control on uploads
This commit is contained in:
parent
01e7c7003b
commit
f7d3f281b8
|
@ -49,6 +49,7 @@ export default {
|
|||
Expires: 300,
|
||||
Conditions: [
|
||||
{ 'Content-Type': type },
|
||||
{ 'Cache-Control': 'max-age=31536000' },
|
||||
{ acl: 'public-read' },
|
||||
['content-length-range', size, size]
|
||||
]
|
||||
|
|
|
@ -38,6 +38,7 @@ export default function Upload ({ as: Component, onSelect, onStarted, onError, o
|
|||
Object.keys(data.getSignedPOST.fields).forEach(key =>
|
||||
form.append(key, data.getSignedPOST.fields[key]))
|
||||
form.append('Content-Type', file.type)
|
||||
form.append('Cache-Control', 'max-age=31536000')
|
||||
form.append('acl', 'public-read')
|
||||
form.append('file', file)
|
||||
|
||||
|
|
Loading…
Reference in New Issue