mirror of
https://github.com/Luzifer/past3.git
synced 2024-11-10 00:40:00 +00:00
Fix: Do not set cache-control but request it
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
05fdce3b07
commit
17bf7c78ae
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -94,6 +94,7 @@ function getFile(filename) {
|
||||||
s3.getObject({
|
s3.getObject({
|
||||||
Bucket: window.past3_config.bucket,
|
Bucket: window.past3_config.bucket,
|
||||||
Key: getFilePrefix() + filename,
|
Key: getFilePrefix() + filename,
|
||||||
|
ResponseCacheControl: defaultCacheControl,
|
||||||
}, loadFileIntoEditor)
|
}, loadFileIntoEditor)
|
||||||
|
|
||||||
// Check whether the file is public
|
// Check whether the file is public
|
||||||
|
@ -380,7 +381,6 @@ function saveFile(filename, content) {
|
||||||
ACL: pub ? 'public-read' : 'private',
|
ACL: pub ? 'public-read' : 'private',
|
||||||
Body: content,
|
Body: content,
|
||||||
Bucket: window.past3_config.bucket,
|
Bucket: window.past3_config.bucket,
|
||||||
CacheControl: defaultCacheControl,
|
|
||||||
ContentType: mime.mime,
|
ContentType: mime.mime,
|
||||||
Key: getFilePrefix() + filename,
|
Key: getFilePrefix() + filename,
|
||||||
ServerSideEncryption: 'AES256',
|
ServerSideEncryption: 'AES256',
|
||||||
|
|
Loading…
Reference in a new issue