Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFront invalidation batch support #20

Open
gtaylor opened this issue Dec 14, 2010 · 1 comment
Open

CloudFront invalidation batch support #20

gtaylor opened this issue Dec 14, 2010 · 1 comment

Comments

@gtaylor
Copy link
Contributor

gtaylor commented Dec 14, 2010

Amazon CloudFront does not automatically detect file changes, even when using an S3 bucket as an origin. The solution to this is that after a syncmedia, a CloudFront invalidation batch must be formed and sent.

Here are details:
http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/index.html?Invalidation.html

This is very specific to CloudFront, not S3. This will probably require some thought to do in a sane way. Perhaps even a post-sync hook that the user can use on their own.

@andymccurdy
Copy link

I've posted an alternative strategy to this at https://github.com/sunlightlabs/django-mediasync/wiki/CloudFront-support

Our current in-house solution works this way. We tried CloudFront Invalidation with varied results. Sometimes it still takes time for edge nodes to invalidate our assets. Baking in version numbers to the path of the file was the only way to be sure we were requesting the new file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants