Skip to content

Commit

Permalink
Adding bucket versioning documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Jean committed May 28, 2014
1 parent 8e0e583 commit ecb3be1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ activate :s3_sync do |s3_sync|
s3_sync.acl = 'public-read'
s3_sync.encryption = false
s3_sync.prefix = ''
s3_sync.version_bucket = false
end
```

Expand All @@ -66,6 +67,7 @@ The following defaults apply to the configuration items:
| path_style | ```true``` |
| encryption | ```false``` |
| acl | ```'public-read'``` |
| version_bucket | ```false``` |

You do not need to specify the settings that match the defaults. This
simplify the configuration of the extension:
Expand Down Expand Up @@ -135,6 +137,15 @@ activate :s3_sync do |s3_sync|
end
```

## Bucket Versioning

You can enable bucket versioning by setting the ```version_bucket```
setting to true within the bucket configuration.

Versioning is enabled at the bucket level, not at the object level.

You can [find out more about versioning here](https://aws.amazon.com/about-aws/whats-new/2010/02/08/versioning-feature-for-amazon-s3-now-available/).

## HTTP Caching

By default, ```middleman-s3_sync``` does not set caching headers. In
Expand Down

0 comments on commit ecb3be1

Please sign in to comment.