TTLabs/EvaporateJS — pull request #49 by Marogian (2014-10-15 16:21:01+00:00)
Title: Adding /<bucket>/ to the url to sign when in cloudfront

Currently Cloudfront is a bit broken on Evaporate.

Cloudfront directs queries directed at /resource to S3 in the form /bucket/resource, S3 subsequently thinks the URL to compare signing against has form /bucket/resource rather than /resource, so when providing the URL for signing you need to prepend the bucket name.

Its also worth adding a note to your documentation indicating that your Cloudfront distribution needs to enable query string forwarding, which is disabled by default. Otherwise the "?uploads" and whatnot part of the queries are cut out.