Amazon CloudFront Invalidation with Coldfusion

03/17/2011
0

Amazon’s CloudFront is great to reduce load on local servers if you are serving a lot of static files or files that can have a long cache timer set.

Sometimes you need to remove files from the CloudFront caches and this is where the Invalidation feature comes in.

An invalidation batch-request invalidates one or more files (paths) from all CloudFront edge location.

Currently it will take about 10-15 minutes for an avarage invalidation batch to run thru. But hey, better than nothing.

A while ago i integrated the SQS and S3 parts i found floating around into one single CFC. Today i added a part for CloudFront invalidation. So here it is:

If you've read this far you might as well follow me on Twitter here.


Comments