Skip to content

Commit

Permalink
Note about CloundFront
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Aug 25, 2013
1 parent d4323d4 commit 58baced
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sqlalchemy_imageattach/stores/s3.py
Expand Up @@ -120,6 +120,12 @@ class S3Store(Store):
"""Image storage backend implementation using S3_. It implements
:class:`~sqlalchemy_imageattach.store.Store` interface.
If you'd like to use it with Amazon CloudFront_, pass the base url of
the distribution to ``public_base_url``. Note that you should configure
*Forward Query Strings* to *Yes* when you create the distribution.
Because SQLAlchemy-ImageAttach will add query strings to public URLs
to invalidate cache when the image is updated.
:param bucket: the buckect name
:type bucket: :class:`basestring`
:type access_key: AWS access key for the bucket.
Expand All @@ -141,6 +147,8 @@ class S3Store(Store):
.. versionchanged:: 0.8.1
Added ``public_base_url`` parameter.
.. _CloudFront: http://aws.amazon.com/cloudfront/
"""

logger = logging.getLogger(__name__ + '.S3Store')
Expand Down

0 comments on commit 58baced

Please sign in to comment.