From 17bf7c78ae8cb80cda93c23a138efa084ecff01d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 14 Jan 2019 22:23:19 +0100 Subject: [PATCH] Fix: Do not set cache-control but request it Signed-off-by: Knut Ahlers --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 5ea5542..7a907cb 100644 --- a/app.js +++ b/app.js @@ -94,6 +94,7 @@ function getFile(filename) { s3.getObject({ Bucket: window.past3_config.bucket, Key: getFilePrefix() + filename, + ResponseCacheControl: defaultCacheControl, }, loadFileIntoEditor) // Check whether the file is public @@ -380,7 +381,6 @@ function saveFile(filename, content) { ACL: pub ? 'public-read' : 'private', Body: content, Bucket: window.past3_config.bucket, - CacheControl: defaultCacheControl, ContentType: mime.mime, Key: getFilePrefix() + filename, ServerSideEncryption: 'AES256',