Skip to content

Commit

Permalink
Merge pull request #47004 from p8/guides/activestorage-s3-cache-control
Browse files Browse the repository at this point in the history
Add S3 Cache-Control header example to guide [ci-skip]
  • Loading branch information
p8 committed Jan 14, 2023
2 parents c7b76db + 224dfa7 commit 2e0a9e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guides/source/active_storage_overview.md
Expand Up @@ -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.

Expand Down

0 comments on commit 2e0a9e6

Please sign in to comment.