From 224dfa7c7c829c449513a4be573a7f08ea3ef6b8 Mon Sep 17 00:00:00 2001 From: Petrik Date: Fri, 13 Jan 2023 21:04:53 +0100 Subject: [PATCH] Add S3 Cache-Control header example to guide [ci-skip] Similar to the example for Google Cloud Storage. --- guides/source/active_storage_overview.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index 3b8dcc6d1d1b2..cfcadf83b391e 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -178,6 +178,7 @@ amazon: retry_limit: 0 upload: server_side_encryption: "" # 'aws:kms' or 'AES256' + cache_control: "private, max-age=<%= 1.day.to_i %>" ``` TIP: Set sensible client HTTP timeouts and retry limits for your application. In certain failure scenarios, the default AWS client configuration may cause connections to be held for up to several minutes and lead to request queuing.